home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 001 / term310.arc / TERM310.DOC next >
Encoding:
Text File  |  1985-08-25  |  127.0 KB  |  3,466 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.             
  17.                                    T E R M 
  18.  
  19.                                  Version 3.10
  20.  
  21.                                 August 21, 1985
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.              A Terminal Emulator for the TI Professional Computer
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.                                       by
  47.  
  48.                                   Greg Gilley
  49.                                  Austin, Texas
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.                 TERM -- A Terminal Emulator for the TIPC
  71.  
  72.  
  73.  
  74.                                  MAIN FEATURES
  75.  
  76.                 o Supports TI internal modem as well as external modems.
  77.  
  78.                 o Allows storage of parameter files to automatically set
  79.                   communication parameters for different remotes.
  80.  
  81.                 o Interrupt driven communications.
  82.  
  83.                 o Supports  xmodem,   modem7,  or  telink  file  transfer 
  84.                   protocol for sending or receiving files.
  85.  
  86.                 o Allows capture of text to a file.
  87.  
  88.                 o Allows definition of function keys.
  89.  
  90.                 o Supports xon/xoff handshaking.
  91.  
  92.                 o Supports VT100/VT52 emulation.
  93.  
  94.                 o MSDOS 2.0 pathname support.
  95.  
  96.                 o Easily configurable to work on different machines.
  97.  
  98.                 o Has script files for automatically logging on to
  99.                   remote systems.
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.         FOREWORD
  128.  
  129.  
  130.  
  131.         This   following   disclaimer  is  something   I   dislike,   but 
  132.         unfortunately is necessary.
  133.  
  134.  
  135.         This  program is provided on  an  "as is" basis without  warranty 
  136.         of any kind, expressed or  implied,  including but not limited to 
  137.         the  implied  warranties  of  merchantability and fitness  for  a 
  138.         particular  purpose.   The  entire   risk   as   to  quality  and 
  139.         performance of this program is  with  you.   Should  the  program 
  140.         prove defective, you assume the  entire  cost  of  all  necessary 
  141.         repair, servicing, or correction.  In no event will the author be 
  142.         liable to you for any  damages,  including any lost profits, lost 
  143.         savings, or other incidental or consequential damages arising out 
  144.         of the use or inability to use this program.  This warranty gives 
  145.         you specific  legal  rights,  and you may have other rights which 
  146.         may vary from state  to  state.   Some  states  do  not allow the 
  147.         exclusion of implied warranties or  exclusion  of  liability  for 
  148.         incidental or consequential damages so the above may not apply to 
  149.         you.   You   acknowledge  that  you  have  read  this  agreement, 
  150.         understand  it,  and  agree  to   be   bound  by  its  terms  and 
  151.         conditions.  You further  agree  that  it  is  the  complete  and 
  152.         exclusive statement of the agreement between us, which supercedes 
  153.         any proposal or prior agreement,  oral  or written, and any other 
  154.         communications between us.
  155.  
  156.  
  157.         I am not the ogre that the above would lead you to believe.  I am 
  158.         a   very  reasonable  person  and  am  open  to  suggestions  for 
  159.         improvements or fixes.   I must protect myself, however, thus the 
  160.         disclaimer.
  161.  
  162.         Several  people  have helped me with my work on  TERM  -- finding 
  163.         bugs, making suggestions, etc.  I would like to thank Ronny Horn, 
  164.         Duane Voth, Marc Newman, Lester Wetherell and most of all my wife 
  165.         Karen for putting up with me while I work on TERM.
  166.  
  167.  
  168.                         Please report any problems, complaints,
  169.                          (praise??), to:
  170.  
  171.                                         Greg Gilley
  172.                                         c/o JIMNET RBBS-PC
  173.                                         512-837-0953
  174.                                         24hrs    300/1200
  175.  
  176.         I will respond as I am able.
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.         FOREWORD
  191.  
  192.  
  193.  
  194.         I  am distributing TERM as user-supported software.   This  means 
  195.         that  I am hoping that the people who use this software will like 
  196.         it enough to pay for it even though I have no way to know who has 
  197.         it.  If you get TERM off a bulletin board, I suggest $15.  If you 
  198.         cannot get it from a bulletin board,  for $30 I will send TERM to 
  199.         you  on a floppy disk with a printed copy of  the  documentation.  
  200.         Be sure to include your name and address so I can send you update 
  201.         notices.  Please send your responses to:
  202.  
  203.                 Greg Gilley
  204.                 10926 Jollyville Rd #1407
  205.                 Austin,TX 78759
  206.  
  207.         I  will keep a list of users who do contribute and notify them of 
  208.         bug fixes, new releases, new products, etc.
  209.  
  210.  
  211.         Many trademarks are used through out  this  document.    I   will 
  212.         list and acknowledge them here.
  213.  
  214.                   MSDOS is a trademark of Microsoft Corporation.
  215.  
  216.                   DEC,  VAX  and VT are trademarks of  Digital  Equipment 
  217.                   Corporation.
  218.  
  219.                   Smartmodem   is  a  trademark  of  Hayes  Microcomputer 
  220.                   Products.
  221.  
  222.  
  223.  
  224.  
  225.  
  226.         NOTE:  User-supported software does not mean public domain!  I         NOTE:  User-supported software does not mean public domain!  I         NOTE:  User-supported software does not mean public domain!  I 
  227.         still reserve all rights on TERM.  TERM may not be resold or sold        still reserve all rights on TERM.  TERM may not be resold or sold        still reserve all rights on TERM.  TERM may not be resold or sold
  228.         except by me.        except by me.        except by me.
  229.  
  230.  
  231.  
  232.  
  233.         Copyright (c) 1985 by Glenn Gilley
  234.         All Rights Reserved
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.         FOREWORD
  254.  
  255.  
  256.                        T A B L E   O F   C O N T E N T S                        T A B L E   O F   C O N T E N T S                        T A B L E   O F   C O N T E N T S                        _ _ _ _ _   _ _   _ _ _ _ _ _ _ _ 
  257.  
  258.           1. RELEASE INFORMATION........................................4          1. RELEASE INFORMATION........................................4          1. RELEASE INFORMATION........................................4
  259.              1.1. New Features..........................................4             1.1. New Features..........................................4
  260.                   1.1.1. New Features to Version 3.10...................4                  1.1.1. New Features to Version 3.10...................4
  261.                   1.1.2. New Features to Version 3.00...................5                  1.1.2. New Features to Version 3.00...................5
  262.                   1.1.3. New Features to Version 2.62...................7                  1.1.3. New Features to Version 2.62...................7
  263.              1.2. Bug Fixes.............................................8             1.2. Bug Fixes.............................................8
  264.                   1.2.1. Bug Reports, Problems and Fixes................8                  1.2.1. Bug Reports, Problems and Fixes................8
  265.                          1.2.1.1. Characters lost                                  __________ ____.......................8
  266.                          1.2.1.2. Xmodem transfers                                  ______ _________......................8
  267.                          1.2.1.3. Drive recognition                                  _____ ___________.....................8
  268.                          1.2.1.4. Save file                                  ____ ____.............................8
  269.                          1.2.1.5. Answering the phone                                  _________ ___ _____...................8
  270.                          1.2.1.6. VT100 emulation                                  _____ _________.......................8
  271.              1.3. Known Problems........................................9             1.3. Known Problems........................................9
  272.              1.4. Future Plans.........................................10             1.4. Future Plans.........................................10
  273.  
  274.           2. EXECUTION.................................................11          2. EXECUTION.................................................11          2. EXECUTION.................................................11
  275.  
  276.           3. MAIN SCREEN...............................................12          3. MAIN SCREEN...............................................12          3. MAIN SCREEN...............................................12
  277.              3.1. Main Menu............................................12             3.1. Main Menu............................................12
  278.              3.2. Configuration........................................13             3.2. Configuration........................................13
  279.                   3.2.1. Port Number...................................13                  3.2.1. Port Number...................................13
  280.                   3.2.2. Status Intensity..............................13                  3.2.2. Status Intensity..............................13
  281.                   3.2.3. Display Intensity.............................13                  3.2.3. Display Intensity.............................13
  282.                   3.2.4. Default Pathspec for File Receives............13                  3.2.4. Default Pathspec for File Receives............13
  283.                   3.2.5. Default Pathspec for File Transmits...........13                  3.2.5. Default Pathspec for File Transmits...........13
  284.                   3.2.6. Default Pathspec for Parameter Files..........14                  3.2.6. Default Pathspec for Parameter Files..........14
  285.                   3.2.7. Default Save filename.........................14                  3.2.7. Default Save filename.........................14
  286.                   3.2.8. Dialing (M)anual (A)utomatic..................14                  3.2.8. Dialing (M)anual (A)utomatic..................14
  287.                   3.2.9. Dial type (P)ulse (T)one......................14                  3.2.9. Dial type (P)ulse (T)one......................14
  288.                   3.2.10. Redial Delay.................................14                  3.2.10. Redial Delay.................................14
  289.                   3.2.11. Modem Autodial control string................14                  3.2.11. Modem Autodial control string................14
  290.                   3.2.12. Dialing timeout (0-60).......................15                  3.2.12. Dialing timeout (0-60).......................15
  291.                   3.2.13. Number of bells to ring after connection.....15                  3.2.13. Number of bells to ring after connection.....15
  292.              3.3. PARAMETER SETUP......................................16             3.3. PARAMETER SETUP......................................16
  293.                   3.3.1. Description...................................16                  3.3.1. Description...................................16
  294.                   3.3.2. Baud Rate.....................................16                  3.3.2. Baud Rate.....................................16
  295.                   3.3.3. Parity........................................17                  3.3.3. Parity........................................17
  296.                   3.3.4. Strip Parity Bit..............................17                  3.3.4. Strip Parity Bit..............................17
  297.                   3.3.5. Wordsize......................................17                  3.3.5. Wordsize......................................17
  298.                   3.3.6. Stopbits......................................17                  3.3.6. Stopbits......................................17
  299.                   3.3.7. Busy Handling.................................17                  3.3.7. Busy Handling.................................17
  300.                   3.3.8. Terminal Type.................................17                  3.3.8. Terminal Type.................................17
  301.                   3.3.9. Phone.........................................17                  3.3.9. Phone.........................................17
  302.              3.4. Function Keys........................................19             3.4. Function Keys........................................19
  303.              3.5. Establishing Connections.............................20             3.5. Establishing Connections.............................20
  304.                   3.5.1. Dialing.......................................20                  3.5.1. Dialing.......................................20
  305.                   3.5.2. Multidialing..................................21                  3.5.2. Multidialing..................................21
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.         FOREWORD
  317.  
  318.  
  319.           4. TERMINAL MODE.............................................22          4. TERMINAL MODE.............................................22          4. TERMINAL MODE.............................................22
  320.              4.1. Status Line..........................................22             4.1. Status Line..........................................22
  321.              4.2. Function Keys........................................22             4.2. Function Keys........................................22
  322.  
  323.           5. SCRIPT FILES..............................................24          5. SCRIPT FILES..............................................24          5. SCRIPT FILES..............................................24
  324.              5.1. String Variables.....................................24             5.1. String Variables.....................................24
  325.              5.2. Script File Commands.................................25             5.2. Script File Commands.................................25
  326.              5.3. Script Expressions...................................31             5.3. Script Expressions...................................31
  327.              5.4. Variables............................................32             5.4. Variables............................................32
  328.              5.5. Functions............................................33             5.5. Functions............................................33
  329.              5.6. Automatic Script Generation..........................34             5.6. Automatic Script Generation..........................34
  330.              5.7. Example Script Files.................................35             5.7. Example Script Files.................................35
  331.  
  332.           6. FILE TRANSFERS............................................36          6. FILE TRANSFERS............................................36          6. FILE TRANSFERS............................................36
  333.              6.1. Xmodem, Modem7, Telink...............................36             6.1. Xmodem, Modem7, Telink...............................36
  334.              6.2. ASCII File Transfers.................................38             6.2. ASCII File Transfers.................................38
  335.                   6.2.1. ASCII file send...............................38                  6.2.1. ASCII file send...............................38
  336.                   6.2.2. ASCII file receive............................39                  6.2.2. ASCII file receive............................39
  337.  
  338.           7. TERMINAL EMULATION........................................40          7. TERMINAL EMULATION........................................40          7. TERMINAL EMULATION........................................40
  339.              7.1. VT100 Escape Sequences Supported.....................40             7.1. VT100 Escape Sequences Supported.....................40
  340.              7.2. VT52 Escape Sequences Supported......................41             7.2. VT52 Escape Sequences Supported......................41
  341.              7.3. Cursor Keys..........................................41             7.3. Cursor Keys..........................................41
  342.              7.4. Numeric Keypad.......................................42             7.4. Numeric Keypad.......................................42
  343.  
  344.  
  345.         
  346.         Appendices
  347.  
  348.           A. 'C' Language characters...................................43          A. 'C' Language characters...................................43          A. 'C' Language characters...................................43
  349.  
  350.           B. LINE EDITING FEATURES.....................................44          B. LINE EDITING FEATURES.....................................44          B. LINE EDITING FEATURES.....................................44
  351.  
  352.           C. MSDOS CRITICAL ERROR HANDLING.............................45          C. MSDOS CRITICAL ERROR HANDLING.............................45          C. MSDOS CRITICAL ERROR HANDLING.............................45
  353.  
  354.           D. EXTERNAL MODEMS...........................................46          D. EXTERNAL MODEMS...........................................46          D. EXTERNAL MODEMS...........................................46
  355.  
  356.              INDEX.....................................................48             INDEX.....................................................48             INDEX.....................................................48
  357.  
  358.  
  359.  
  360.  
  361.                           L I S T   O F   T A B L E S                           L I S T   O F   T A B L E S                           L I S T   O F   T A B L E S                           _ _ _ _   _ _   _ _ _ _ _ _ 
  362.  
  363.          5-1: Operators in Order of Descending Priority................32         5-1: Operators in Order of Descending Priority................32         5-1: Operators in Order of Descending Priority................32
  364.  
  365.          7-1: Cursor Keys..............................................41         7-1: Cursor Keys..............................................41         7-1: Cursor Keys..............................................41
  366.          7-2: Numeric Keypad Codes.....................................42         7-2: Numeric Keypad Codes.....................................42         7-2: Numeric Keypad Codes.....................................42
  367.  
  368.          D-1: Smartmodem switch settings...............................46         D-1: Smartmodem switch settings...............................46         D-1: Smartmodem switch settings...............................46
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.         NEW FEATURES
  380.  
  381.  
  382.         1. RELEASE INFORMATION        1. RELEASE INFORMATION        1. RELEASE INFORMATION
  383.  
  384.         1.1. New Features        1.1. New Features
  385.  
  386.              NOTE:  Many  of the new functions in TERM have setup  values 
  387.                     that would not be frequently changed.   To save code, 
  388.                     these values are not input from the standard screens.  
  389.                     Instead,   the   configuration  file  (TERM.CFG)  and 
  390.                     parameter  files  (YOURFILE.TRM) must be  edited  and 
  391.                     lines inserted.  Any standard text editor may be used 
  392.                     (as  long  as it does not insert  formatting  control 
  393.                     characters,  Wordstar  in document mode for example).  
  394.                     Edlin  will  work fine.   In the current  release  of 
  395.                     TERM,  it  is not acceptable to insert  extra  blanks 
  396.                     between  the characters.   Examples will be shown  to 
  397.                     illustrate the use of the parameters.
  398.  
  399.         1.1.1. New Features to Version 3.10        1.1.1. New Features to Version 3.10
  400.  
  401.         Several new things added to version 3.10.  The major changes have 
  402.         to do with script files.
  403.  
  404.         A  lot of new script file commands were added.   Some were  added 
  405.         because of the addition of the ability to redefine function keys.
  406.         It would be redundant to list all of the changes here, so see the 
  407.         section on SCRIPT FILES.
  408.  
  409.         As I just mentioned,  the function keys used while connected to a 
  410.         remote  (ie.  F1:Sav,  F2:NuSav,  etc.) can be redefined and  can 
  411.         execute script commands.  See the section on FUNCTION KEYS.
  412.  
  413.         An  automatic (or at least semi-automatic) script file  generator 
  414.         has been added.   Once the learn mode has been entered, TERM will 
  415.         monitor  the  characters  from the remote and the  responses  and 
  416.         generate a script file.
  417.  
  418.         Multiple  script  commands can be specified on a single  line  by 
  419.         separating the commands with a semicolon (;).
  420.  
  421.         String  variables have been added to script commands to pave  the 
  422.         way for more powerful scripts.
  423.  
  424.         There  is an INCOMPATIBILITY between script files in version 3.10 
  425.         and previous versions.  Script files will not abort if a  pattern 
  426.         match fails.   Instead, the failure must be handled in the script 
  427.         file.   If  you want the match failures to abort the scripts (for 
  428.         compatibility with earlier versions),  specify an option of -a on 
  429.         the command line when TERM is executed.
  430.          
  431.         External  modem support has been improved (I hear a few sighs  of 
  432.         relief  out  there).   Redialing  and multidialing are  now  both 
  433.         supported  with  external modems.   In  addition,  if  the  modem 
  434.         returns busy signals TERM can recognize them.  See the section on 
  435.         ESTABLISHING CONNECTIONS.
  436.  
  437.  
  438.  
  439.  
  440.  
  441.         TERM 3.10  08/21/85                                  page 1
  442.         NEW FEATURES
  443.  
  444.  
  445.         The  external  modem initialization string has been added to  the 
  446.         configuration menu.   Turns out it will be used more often than I 
  447.         had originally thought.
  448.  
  449.         The  default  initial  dialing timeout (originally  fixed  at  20 
  450.         seconds) can now be modified in the configuration menu.
  451.  
  452.         While looking at the list of parameter files after F2 or F3  from 
  453.         main menu, pressing the DEL key will allow deleting the parameter 
  454.         file.  The corresponding script file will be deleted also.
  455.  
  456.         While  sending or receiving files,  the display of  sent/received 
  457.         data can be toggled on and off.  The view mode, ASCII or hex, can 
  458.         be toggled also.  Also a function has been added to allow TERM to 
  459.         hang up after a file transfer has completed.   This allows you to 
  460.         start big transfers and go to bed.  Also,  the number of bells to 
  461.         ring after a connection (specified in the configuration menu), is 
  462.         used  when the file transfer is completed.   If you are like  me, 
  463.         you  start a transfer and go do something more interesting  while 
  464.         it  proceeds.   See the section on FILE TRANSFERS  for  pertinent 
  465.         information.
  466.  
  467.         A  non-standard escape sequence to control the cursor  (on,  off, 
  468.         blink)   was  added  to  support  the  Octacomm  board   for   TI 
  469.         minicomputers.  See the section on TERMINAL EMULATION.
  470.  
  471.         The NuSav command (F2 key) has been improved and the changes will 
  472.         hopefully  eliminate the problems that have been  occurring.   If 
  473.         the file already exists,  the prompt for (A)ppend, (R)eplace will 
  474.         reflect it.  The default mode is now append.
  475.  
  476.         DOS 1.25 is no longer supported.   The code required to run under 
  477.         DOS 1.25 was too large to justify.
  478.  
  479.  
  480.  
  481.         1.1.2. New Features to Version 3.00        1.1.2. New Features to Version 3.00
  482.  
  483.         Version  3.00  adds  several  new functions  to  TERM.   The  big 
  484.         difference  is  adding  the  Modem7  and  Telink  file   transfer 
  485.         protocols.   Modem7 is a protocol used in the CP/M world.  Telink 
  486.         was  invented by Tom Jennings,  author of the FIDO bulletin board 
  487.         system.   Modem7 and Telink both allow batch mode file transfers.  
  488.         This means that wild card specifications (ie. *.exe) are allowed. 
  489.         The  transfer proceeds until all files have  been  sent.   Telink 
  490.         adds  the additional ability to send across exact file sizes  and 
  491.         the  correct date and time for the file.   A side effect of these 
  492.         new protocol additions (caused by rewriting and rethinking code),  
  493.         is  that  the  problem with the RBBS-PC  boards  goes  away.   In 
  494.         previous  versions  TERM  would  not  accept  the  first  end-of-
  495.         transmission   character  it  received  and  RBBS-PC  would   not 
  496.         retransmit.   Now,  TERM uses the number of blocks to detect when 
  497.         an  end-of-transmission  is valid.   If you do specify  too  many 
  498.         blocks, however, TERM will time out and close the file normally.
  499.  
  500.  
  501.  
  502.  
  503.  
  504.         TERM 3.10  08/21/85                                  page 2
  505.         NEW FEATURES
  506.  
  507.  
  508.         Also  added  (by popular demand) is an ascii file send (F3  key).  
  509.         It will hopefully meet most of everyone's needs.   It has options 
  510.         which  make it relatively easy to upload messages to  editors  on 
  511.         systems.   The  default parameters can be saved so that once  set 
  512.         up, do not need to be reworked.
  513.  
  514.         The  F4 key will save the contents of the current screen  to  the 
  515.         save  file.   This is for the stuff that goes by before you think 
  516.         to hit the save key.
  517.  
  518.         The PRNT key will toggle output to the printer on and off.   This 
  519.         will echo any characters that are received from the remote to the 
  520.         printer (PRN).
  521.  
  522.         Direct  connection capability has been added.   It works a little 
  523.         different than you might expect.  See the section on establishing 
  524.         connections for an explanation.
  525.  
  526.         Answer  mode  has been improved.   Answering at 300 baud did  not 
  527.         work before, but it has been repaired.  Neither the answering nor 
  528.         the calling machine need set it in half-duplex.   All echoing  is 
  529.         handled  automatically.    Still  no  unattended  file  transfers 
  530.         though.  Maybe next time.
  531.  
  532.         Added some code to do pathname validation.   I know I've typed in 
  533.         the  wrong  names  a  few  times.   Its  operation  is  a  little 
  534.         inconsistent with normal operation of the interface (errors  come 
  535.         up in a window), but I'm just experimenting.
  536.  
  537.         The  function  key  definition menu is now  accessible  from  the 
  538.         connection screen.   F7 will bring it up.  Should have been there 
  539.         a long time ago, but some people are just born lazy.
  540.  
  541.         An  external modem initialization string has  been  added.   This 
  542.         string  is sent once the first time the modem is used.   This can 
  543.         be used to switch modem modes,  set ring counts,  etc.   External 
  544.         modem support still needs work though.  No autoanswer yet.
  545.  
  546.         Abort has been added to critical error handling with some special 
  547.         provisions for printers.  See the section on MSDOS CRITICAL ERROR 
  548.         HANDLING for specific information.
  549.  
  550.         I'm  dropping  MSDOS  1.25 support next  release.   The  code  is 
  551.         getting too large to justify.   Besides,  those of you who do not 
  552.         have DOS version 2.1 should get it.  Lots of nice features.
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.         TERM 3.10  08/21/85                                  page 3
  568.         NEW FEATURES
  569.  
  570.  
  571.  
  572.         1.1.3. New Features to Version 2.62        1.1.3. New Features to Version 2.62
  573.  
  574.         Menu  selection  of  parameter files was added.   I  never  could 
  575.         remember  all of the parameter files I had set up.   Now I  don't 
  576.         have to.   Parameter files now require an extension of .trm.  See 
  577.         the section on parameter files for more details.
  578.  
  579.         In  tandem  with  menu  selection  is  a  feature  I  am  calling 
  580.         multidialing.   (Couldn't  come up with anything  better).   This 
  581.         allows  you  to set up a list of parameter files  which  will  be 
  582.         cycled  through.   Each parameter file will be processed until  a 
  583.         connection  is established.   This feature comes in real handy if 
  584.         there  are several bulletin boards that you like to  visit.   See 
  585.         the parameter file section.
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.         TERM 3.10  08/21/85                                  page 4
  631.         BUG FIXES
  632.  
  633.  
  634.         1.2. Bug Fixes        1.2. Bug Fixes
  635.  
  636.         1.2.1. Bug Reports, Problems and Fixes        1.2.1. Bug Reports, Problems and Fixes
  637.  
  638.         1.2.1.1. Characters lost                 __________ ____
  639.  
  640.         Several  people have reported problems with characters being lost 
  641.         when connected.   Most of the time this is the result of improper 
  642.         parity settings.   On almost all of the bulletin boards,  you can 
  643.         use 8 bits, strip parity bit, no parity, one stop bit.  Note:  if 
  644.         it  is  an  RBBS-PC board,  you may want to  disable  parity  bit 
  645.         stripping so you can receive the graphic characters.
  646.  
  647.         1.2.1.2. Xmodem transfers                 ______ _________
  648.  
  649.         Xmodem  transfers  had  some  small  problems  that  could  cause 
  650.         transfers to be aborted.
  651.  
  652.         1.2.1.3. Drive recognition                 _____ ___________
  653.  
  654.         When checking for valid drive identifiers,  drives greater than F 
  655.         were not flagged properly.
  656.  
  657.         1.2.1.4. Save file                 ____ ____
  658.  
  659.         When saving to a save file,  and disk space ran out, the save was 
  660.         not properly aborted.
  661.  
  662.         1.2.1.5. Answering the phone                 _________ ___ _____
  663.  
  664.         After dialing when the retry popup was on the screen,  TERM would 
  665.         answer the phone if it rang.
  666.  
  667.         1.2.1.6. VT100 emulation                 _____ _________
  668.  
  669.         There was a bug in VT100 emulation that would allow the cursor to 
  670.         be placed on line 25 (the status line).
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.         TERM 3.10  08/21/85                                  page 5
  694.         KNOWN PROBLEMS
  695.  
  696.  
  697.  
  698.         1.3. Known Problems        1.3. Known Problems
  699.  
  700.         1.  VT100/VT52 emulation.
  701.             The VT100/VT52 emulation  is incomplete.    Most of the major 
  702.             functions are implemented.  It has been expanded to the point 
  703.             that the EDT editor on a VAX will work properly.   If you use 
  704.             it and find a problem, please let me know so I can fix it.   
  705.  
  706.         2.  Errors.
  707.             TERM  does not do a great deal of error  checking.   Since  I 
  708.             know it inside-out,  I do not need much error checking.   But 
  709.             in  the interest of other users,   I will attempt to  improve 
  710.             error handling.
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.  
  735.  
  736.  
  737.  
  738.  
  739.  
  740.  
  741.  
  742.  
  743.  
  744.  
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.         TERM 3.10  08/21/85                                  page 6
  757.         FUTURE PLANS
  758.  
  759.  
  760.  
  761.         1.4. Future Plans        1.4. Future Plans
  762.  
  763.         TERM is sort of my pet project.   My personal version undergoes a 
  764.         great many changes.  I will try to keep new releases organized to 
  765.         protect your sanity.
  766.  
  767.         I hope to add sometime (in addition to bug fixes):
  768.             Full VT100/52 emulation.
  769.             Kermit file transfer protocol support.
  770.             More error checking.
  771.  
  772.         TERM is starting to get rather large.   I've optimized it as  far 
  773.         down as I can,  but it's still growing.  This means I either have 
  774.         to  start overlaying it,  or just let it get bigger.   I'd rather 
  775.         not  overlay it,  but that depends on how many people  have  less 
  776.         than  256K memory.   If the majority have at least 256K,  then  I 
  777.         will not have to overlay it.
  778.  
  779.         I will not release source code any time soon.  Please, don't ask.
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.  
  803.  
  804.  
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.         TERM 3.10  08/21/85                                  page 7
  820.         TERM
  821.  
  822.  
  823.         2. EXECUTION        2. EXECUTION        2. EXECUTION
  824.  
  825.         TERM  is  a  general purpose  communications  program.   TERM  is 
  826.         loosely  modeled around COMTTY to make it easier to use for those 
  827.         people who already own COMTTY.
  828.  
  829.         An  attempt was made in TERM to provide a  consistent  interface.  
  830.         Pressing F12 will abort you out of most anything.  In a couple of 
  831.         cases,  the return key is required to 'continue'.   If an invalid 
  832.         pathname  is  entered at a prompt,  a popup window with an  error 
  833.         message is displayed.  Pressing the return key will return to the 
  834.         line in error.  When information is required from the user, it is 
  835.         usually  elicited  through a "window".   See Appendix  B  ,  LINE 
  836.         EDITING FEATURES section for more information on input.
  837.  
  838.         When  TERM  is executed,  it checks for the existence of  a  file 
  839.         called  TERM.CFG.   It  reads  information about  the  particular 
  840.         machine it is running on from this file:  which comm port to use, 
  841.         where files should go,  etc.   If this file does not exist,   the 
  842.         program  automatically  switches to the  SET  TERM  CONFIGURATION 
  843.         menu.   Otherwise,  the main screen comes up.  When bringing TERM 
  844.         up, a parameter file can be specified if desired.  The command
  845.  
  846.           TERM filename
  847.  
  848.         will attempt to connect to the parameter file "filename".
  849.  
  850.         Script  files  are  normally automatically  executed  after  TERM 
  851.         connects  to the remote.   If you do not wish script files to  be 
  852.         executed during this session of TERM,  specify an option of -n on 
  853.         the command line.  Example:
  854.  
  855.           TERM -n filename
  856.  
  857.         You must quit TERM and reenter it to allow scripts to be executed 
  858.         again.
  859.  
  860.         In pre 3.10 versions of TERM, script files would abort if a MATCH 
  861.         or PROMPT command failed.   Version 3.10 requires that the script 
  862.         file  handle the match failure.   If you wish the script file  to 
  863.         abort when a pattern match fails,  specify an option of -a on the 
  864.         command line.
  865.  
  866.         An  environment variable can be set (in MSDOS 2.0) to  tell  TERM 
  867.         where  the  file  TERM.CFG is located.   This allows TERM  to  be 
  868.         executed from any drive or from any subdirectory.   The  variable 
  869.         is called TERMCFG.  Just issue the command
  870.  
  871.              set TERMCFG=e:\usr\term     (your subdirectory) 
  872.  
  873.         from  the  MSDOS prompt (or in a batch  file).   TERM  will  then 
  874.         search   the   environment  to  find  TERMCFG  and   locate   the 
  875.         configuration file.
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.         TERM 3.10  08/21/85                                  page 8
  883.         MAIN SCREEN
  884.  
  885.  
  886.         3. MAIN SCREEN        3. MAIN SCREEN        3. MAIN SCREEN
  887.  
  888.         3.1. Main Menu        3.1. Main Menu
  889.  
  890.         The  main screen comes up with a title,  and a status line across 
  891.         the  bottom  of  the screen.   The status  line  documents  which 
  892.         functions are available and which function key to press.
  893.  
  894.         F2:Setup     -- Takes  you  to  the parameter  setup  menu  which 
  895.                         allows  parameter files to be initialized.   This 
  896.                         must   be   done  before   connections   can   be 
  897.                         established.
  898.  
  899.         F3:Start     -- Starts  the  connection  sequence.    A  menu  of 
  900.                         parameter files pops up.   Use the arrow keys  to 
  901.                         move  the  cursor on to the name of  the  desired 
  902.                         parameter file.   If a character is pressed,  the 
  903.                         cursor  will be moved to the first parameter file 
  904.                         with  that character as the first letter  of  its 
  905.                         name.    Press  the  RETURN  key  to  select  the 
  906.                         parameter file.  TERM then attempts to connect to 
  907.                         the remote system.
  908.  
  909.                         To  initiate multidialing,  the procedure is much 
  910.                         the  same.    Move  the  cursor  to  the  desired 
  911.                         parameter  file  and press  the  space  bar.   An 
  912.                         asterik   (*)   will  appear  beside  the   name.  
  913.                         Pressing  the  space  bar on  a  name  which  has 
  914.                         already  been selected will deselect  it.  Repeat 
  915.                         this procedure until the desired set of names (up 
  916.                         to 10) is selected.  Pressing the RETURN key will 
  917.                         start the multidialing.  Each parameter file will 
  918.                         be  processed until a connection is  established.  
  919.                         There  is  no time limit placed on  multidialing.  
  920.                         If it cannot get a connection,  it will dial  all 
  921.                         night!
  922.                             
  923.         F5:Reconfigure  -- Takes you to the set TERM configuration  menu.  
  924.                         Allows  configuration  parameters (screen  color, 
  925.                         port,  etc.)  to be changed.   The  configuration 
  926.                         file   (TERM.CFG)   is  updated  with   the   new 
  927.                         information.
  928.  
  929.         F7:Fkeys     -- Allows  globally  redefining almost all  function 
  930.                         keys  used in terminal mode while connected to  a 
  931.                         remote  system.   Redefining  the keys here  will 
  932.                         cause  them  to  be  in effect  for  all  of  the 
  933.                         parameter  files.   The key values will be  saved 
  934.                         unless the setup menu is aborted (F12).   See the 
  935.                         section   on   FUNCTION  KEYS  for   a   complete 
  936.                         description.
  937.  
  938.         F8:DOS       -- Puts  you  in MSDOS without having to  exit  TERM 
  939.                         first.   Typing  EXIT in MSDOS will return you to 
  940.                         TERM.
  941.  
  942.         F12:Exit     -- Exit TERM and return to MSDOS.
  943.  
  944.  
  945.         TERM 3.10  08/21/85                                  page 9
  946.         CONFIGURATION
  947.  
  948.  
  949.         3.2. Configuration        3.2. Configuration
  950.  
  951.         When this screen comes up,  there will be an initial delay.  This 
  952.         is because TERM is checking the machine for the existence of comm 
  953.         boards  and  internal  modems.   The boards that  exist  will  be 
  954.         displayed.  The parameters that are to be specified follow:
  955.  
  956.         3.2.1. Port Number        3.2.1. Port Number
  957.  
  958.         This parameter is in the range 1 to 4 and will specify which comm 
  959.         port  will be used by TERM.   The list of installed comm  boards/ 
  960.         modems  is given to make selection easier.   TERM  will  automat-
  961.         ically  determine  if  the chosen port is an internal  modem.
  962.  
  963.         3.2.2. Status Intensity        3.2.2. Status Intensity
  964.  
  965.         This is the intensity (on a monochrome monitor) or color for  the 
  966.         status line which appears at the bottom of the screen.  It may be 
  967.         set to blue, red, magenta, green, cyan, yellow, or white.
  968.  
  969.         3.2.3. Display Intensity        3.2.3. Display Intensity
  970.  
  971.         This  is the intensity (on a monochrome monitor) or color for the 
  972.         display portion of the screen.   All characters received will  be 
  973.         displayed   in  this  color  (unless  changed  by  the   received 
  974.         characters).
  975.  
  976.         3.2.4. Default Pathspec for File Receives        3.2.4. Default Pathspec for File Receives
  977.  
  978.         This  is  the pathspec or drive which gives  the  destination  of 
  979.         files  which are downloaded using TERM.   The actual filename  is 
  980.         specified  at  the time of the download.   The  receive  path  is 
  981.         prepended to the filename.
  982.         Example:
  983.                 Default Pathspec for File Receives   : e:\usr\comm\recv\
  984.                   or
  985.                 Default Pathspec for File Receives   : a:
  986.  
  987.         3.2.5. Default Pathspec for File Transmits        3.2.5. Default Pathspec for File Transmits
  988.  
  989.         This  is the pathspec or drive which gives the source location of 
  990.         files  which  are uploaded using TERM.   The actual  filename  is 
  991.         specified  at  the  time of the download.   The receive  path  is 
  992.         prepended to the filename.
  993.         Example:
  994.                 Default Pathspec for File Transmits  : e:\usr\comm\send\
  995.                   or
  996.                 Default Pathspec for File Transmits  : b:
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.         TERM 3.10  08/21/85                                  page 10
  1009.         CONFIGURATION
  1010.  
  1011.  
  1012.         3.2.6. Default Pathspec for Parameter Files        3.2.6. Default Pathspec for Parameter Files
  1013.  
  1014.         This  is  the pathspec or drive which gives the location  of  the 
  1015.         parameter  files  which  TERM uses to store  information  on  the 
  1016.         remote  systems.   The  parameter  filename  is  input  when  the 
  1017.         parameter file is setup.   The parameter path is prepended to the 
  1018.         filename to select its final destination.   Script files are also 
  1019.         stored using this path.
  1020.         Example:
  1021.                 Default Pathspec for Parameter Files : e:\usr\comm\param\
  1022.                   or
  1023.                 Default Pathspec for Parameter Files : a:
  1024.  
  1025.         3.2.7. Default Save filename        3.2.7. Default Save filename
  1026.  
  1027.         This is the filespec (including drive and/or MSDOS 2.0  pathspec) 
  1028.         for the default save file.  TERM allows received characters to be 
  1029.         saved  in a file.   This is the file which will be used each time 
  1030.         TERM is executed.   If the file already exists,  TERM will append 
  1031.         the new data to the existing file.  This file name may be changed 
  1032.         during a connection with the NuSav command (F2).
  1033.         Example:
  1034.                 Default Save filename : e:\usr\comm\term\term.sav
  1035.                   or
  1036.                 Default Save filename : a:term.sav
  1037.  
  1038.         3.2.8. Dialing (M)anual (A)utomatic        3.2.8. Dialing (M)anual (A)utomatic
  1039.  
  1040.         If  an internal modem is being used,  TERM can automatically dial 
  1041.         the  number and connect to the remote.   If an external modem  is 
  1042.         used which uses ASCII commands to dial, TERM can dial it as well.
  1043.         If manual dialing is selected, TERM will display the phone number 
  1044.         for reference.
  1045.  
  1046.         3.2.9. Dial type (P)ulse (T)one        3.2.9. Dial type (P)ulse (T)one
  1047.  
  1048.         Selects dialing mode for the TI internal modem.   Note that  this 
  1049.         mode  can  be  switched on an internal modem  during  dialing  by 
  1050.         placing  a 'T' for tone dialing or a 'P' for pulse dialing in the 
  1051.         phone number. (See phone number under parameter setup).
  1052.  
  1053.         3.2.10. Redial Delay        3.2.10. Redial Delay
  1054.  
  1055.         If  an intelligent modem is being used,  TERM  can  automatically 
  1056.         redail  a  number.   The  redial  delay specifies  the  time  (in 
  1057.         seconds) to wait before attempting to dial the number again.
  1058.  
  1059.         3.2.11. Modem Autodial control string        3.2.11. Modem Autodial control string
  1060.  
  1061.         This  prompt will only appear if an external modem is being used.  
  1062.         This  is the control string that causes the modem  to  dial.   On 
  1063.         Smartmodem(TM)  compatible  modems,  this is 'ATDT' (no  quotes).  
  1064.         'C' language control strings may be entered (See appendix A).
  1065.  
  1066.  
  1067.  
  1068.  
  1069.  
  1070.  
  1071.         TERM 3.10  08/21/85                                  page 11
  1072.         CONFIGURATION
  1073.  
  1074.  
  1075.         3.2.12. Dialing timeout (0-60)        3.2.12. Dialing timeout (0-60)
  1076.  
  1077.         This is the default timeout in seconds when dialing a number.  If 
  1078.         a connection is not established after this time period, TERM will 
  1079.         abort the connection attempt.
  1080.  
  1081.         3.2.13. Number of bells to ring after connection        3.2.13. Number of bells to ring after connection
  1082.  
  1083.         This  was  added to aide those who set redial on 999 and go  have 
  1084.         lunch.   This will ring the bell the number of times specified or 
  1085.         until  a key is pressed.   There is a half-second  delay  between 
  1086.         each bell.
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.         TERM 3.10  08/21/85                                  page 12
  1135.         PARAMETER SETUP
  1136.  
  1137.  
  1138.         3.3. PARAMETER SETUP        3.3. PARAMETER SETUP
  1139.  
  1140.  
  1141.         Parameters are stored in files and include information needed  by 
  1142.         TERM  for  connecting  to each  computer.   Information  that  is 
  1143.         variable  from  computer to computer  (baud,  parity,  etc.)  are 
  1144.         stored in these files.   To access the parameter file setup menu, 
  1145.         press  the F2 key on the main menu.
  1146.  
  1147.         A menu of the available parameter files pops up.   Use the  arrow 
  1148.         keys  to  move the cursor onto the desired parameter file  or  to 
  1149.         <NEWFILE> if no initial parameters are desired.  Press the RETURN 
  1150.         key to select the parameter file.  Now a menu screen comes up.
  1151.  
  1152.             NOTE:  Versions   3.00  of  TERM  and  higher  require   that 
  1153.                    parameter  files have an extension of .trm.   To  make 
  1154.                    old  parameter files available,  simply rename them to 
  1155.                    have  an  extension  of  .trm.   For  example,  if  no 
  1156.                    extension was used previously, then the command
  1157.  
  1158.                    ren *. *.trm
  1159.  
  1160.                    should make all the old parameter files available.
  1161.  
  1162.  
  1163.         F2:Parameters   -- Puts up a parameter setup window which  allows 
  1164.                            specifying    parameters    for     individual 
  1165.                            connections.
  1166.  
  1167.         F4:Function Keys-- Allows the user to  access  the  function  key 
  1168.                            definition screen.  Keys defined at this point 
  1169.                            will  become  active  when  a  connection   is 
  1170.                            established.   They are in effect only for the 
  1171.                            duration of the connection.
  1172.  
  1173.         F5:Save Parameters -- The   filename   specification   for    the 
  1174.                            parameter  file.  This  will be used when  the 
  1175.                            start option is selected from the main screen. 
  1176.  
  1177.         F12:Abort       -- Abort to the MAIN MENU.
  1178.  
  1179.         When   the  parameter  setup  window  comes  up,   the  following 
  1180.         information will be elicited:
  1181.  
  1182.         3.3.1. Description        3.3.1. Description
  1183.  
  1184.         A thirty character description of the destination computer  which 
  1185.         is displayed when an attempt is made to connect.
  1186.  
  1187.         3.3.2. Baud Rate        3.3.2. Baud Rate
  1188.  
  1189.         The baud rate for the connection. 
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197.         TERM 3.10  08/21/85                                  page 13
  1198.         PARAMETER SETUP
  1199.  
  1200.  
  1201.         3.3.3. Parity        3.3.3. Parity
  1202.  
  1203.         Allows selection of no parity,  odd,  even, mark or space parity.  
  1204.         The  best  parity  setting (will work with most  systems)  is  no 
  1205.         parity.
  1206.  
  1207.         3.3.4. Strip Parity Bit        3.3.4. Strip Parity Bit
  1208.  
  1209.         This  is used to strip the parity bit (bit 7) off incoming  bytes 
  1210.         before   they  are  displayed.    This  does  not  affect  xmodem 
  1211.         transfers.   On non-RBBS-PC boards,  it is best to strip off this 
  1212.         bit.   In many cases,  the remote system may be sending data with 
  1213.         parity checking.
  1214.  
  1215.         3.3.5. Wordsize        3.3.5. Wordsize
  1216.  
  1217.         Number of data bits in a word (7 or 8).  The best value to use is 
  1218.         8 bits.
  1219.  
  1220.         3.3.6. Stopbits        3.3.6. Stopbits
  1221.  
  1222.         Number  of  stopbits in a data word (1 or  2).   The  recommended 
  1223.         value is 1 stopbit.
  1224.  
  1225.         3.3.7. Busy Handling        3.3.7. Busy Handling
  1226.  
  1227.         Allows  the connecting system to halt output from your system and 
  1228.         vice-versa.   Helps  to prevent data from being  lost.   Xon-Xoff 
  1229.         (DC1-DC3)  handling is supported.   This feature is not  normally 
  1230.         supported on microcomputer based bulletin boards.  However, large 
  1231.         systems such as Compuserve do use xon/xoff busy handling.
  1232.  
  1233.         3.3.8. Terminal Type        3.3.8. Terminal Type
  1234.  
  1235.         The type of terminal to be emulated:   tty (normal mode),  VT100, 
  1236.         or VT52.   At this time,  this emulation is incomplete.  (See the 
  1237.         TERMINAL EMULATION section for a list of supported features).  On 
  1238.         some  RBBS-PC  bulletin boards,  "ANSI graphics"  are  supported.  
  1239.         This  is  equivalent to VT100 on TERM.   Note  that  for  graphic 
  1240.         characters  to be displayed properly,  the settings should be  no 
  1241.         parity, do not strip parity bit, 8 data bits and 1 stop bit.
  1242.  
  1243.         3.3.9. Phone        3.3.9. Phone
  1244.  
  1245.         The  phone  number  for  the  remote  computer.    Digits  (0-9), 
  1246.         separator (-), wait for dial tone (+), pause for two seconds (@), 
  1247.         phone  control (#,*),  tone dialing mode (T),  and pulse  dialing 
  1248.         mode (P) are supported.   Note that the preceding characters  are 
  1249.         for  use with a TI internal modem only.   If an external modem is 
  1250.         used,  insert the appropriate control characters for that  modem.  
  1251.         For Smartmodem compatible modems,  a comma (,) acts as a pause in 
  1252.         dialing and should be used to wait for dial tones,  etc.  Control 
  1253.         characters   (non-displayable)  may  be  specified  in  the   'C' 
  1254.         programming language format.  A backslash followed by a 'b', 'r', 
  1255.         'n',  etc. or and x and a two-digit hexadecimal number (ie., \x0b 
  1256.         for a form feed).  See appendix A.
  1257.  
  1258.  
  1259.  
  1260.         TERM 3.10  08/21/85                                  page 14
  1261.         PARAMETER SETUP
  1262.  
  1263.  
  1264.         Example:
  1265.                 If your home phone is pulse (rotary) dialing then  select 
  1266.                 pulse dialing mode during Configuration setup.   To use a 
  1267.                 service  such as Sprint or MCI the phone number would  be 
  1268.                 similar to the following:
  1269.  
  1270.                 Phone number : 5551313+T123456789+1235558989
  1271.  
  1272.                 The first number is the local number of the service.  The 
  1273.                 '+'  waits  for a dial tone.   The 'T' switches  to  tone 
  1274.                 dialing  (required  for  most  services).   The  password 
  1275.                 (account  number)  follows and then another  pause.   The 
  1276.                 final number is the telephone number desired.
  1277.  
  1278.         If  the phone number is omitted then TERM will answer the  phone.  
  1279.         This  mode  is not intended for unattended operation so  it  will 
  1280.         only  answer one call.   This allows two users to transfer  files 
  1281.         without an RBBS type program. 
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295.  
  1296.  
  1297.  
  1298.  
  1299.  
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305.  
  1306.  
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.         TERM 3.10  08/21/85                                  page 15
  1324.         FUNCTION KEYS
  1325.  
  1326.  
  1327.  
  1328.         3.4. Function Keys        3.4. Function Keys
  1329.  
  1330.         Function  keys  are  defined at two  levels:   globally  and  per 
  1331.         parameter file.   The parameter file,  or local,  key definitions 
  1332.         override the global definitions.   The global key definitions are 
  1333.         specified  at  the MAIN MENU level.   The local  definitions  are 
  1334.         entered  at the parameter setup menu or during the session.   The 
  1335.         local  definitions  are only in effect for the  duration  of  the 
  1336.         connection.
  1337.  
  1338.         The function keys,  both global and local,  are specified through 
  1339.         the same menu.   When the menu is displayed, it shows the current 
  1340.         key  definitions.   A  prompt  is  displayed for  the  key  name.  
  1341.         Pressing  F1 at this point will display the list of function  key 
  1342.         names.   The keys are named using the convention of the technical 
  1343.         reference  manual.   After specifying the key name,  a prompt  is 
  1344.         displayed  for  the value of the function key.   If the  key  has 
  1345.         already been assigned, the current value is shown.
  1346.  
  1347.         The  key  value  is a string which is transmitted to  the  remote 
  1348.         system.   A  pause may be inserted in the string by specifying  a 
  1349.         '\p'  in the string (no quotes).   The pause lasts  approximately 
  1350.         one second.  For example:
  1351.  
  1352.         go cis\r\pgo pcs-37\r
  1353.  
  1354.         In  specifying  function  key values,  if double quotes  (")  are 
  1355.         entered,  they  will be transmitted to the remote.   This  is  in 
  1356.         contrast  to script files which use double quotes to delimit  the 
  1357.         strings.
  1358.  
  1359.         If the first character of the key value is an "at" sign (@), then 
  1360.         the  rest  of  the line is treated as script  commands  (see  the 
  1361.         section on SCRIPT FILES).   This feature is used to implement the 
  1362.         function keys F1-F12 while connected to a  remote.   Implementing 
  1363.         the  function  keys in this manner allows them to be  customized.  
  1364.         If,  for example, you wanted to automatically start saving to the 
  1365.         save file immediately after you specified it, change the value of 
  1366.         F2 (from the MAIN MENU) to:
  1367.  
  1368.         @save ; save on
  1369.  
  1370.         Almost  all script commands can be executed from  function  keys.  
  1371.         The exceptions are GOTO,  LABEL,  FAIL,  and ABORT.   Consult the 
  1372.         section on script files for a full list of available commands.
  1373.  
  1374.  
  1375.  
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.         TERM 3.10  08/21/85                                  page 16
  1387.         ESTABLISHING CONNECTIONS
  1388.  
  1389.  
  1390.  
  1391.         3.5. Establishing Connections        3.5. Establishing Connections
  1392.  
  1393.         TERM  has two modes of connections,  through a modem and directly 
  1394.         to  another  machine.   If  a  modem  is  being  used,  TERM  can 
  1395.         automatically dial the number if the modem supports it.
  1396.  
  1397.         For  an  internal modem,  simply specify the  phone  number  when 
  1398.         setting  up  the parameters.   See phone number  under  parameter 
  1399.         setup.
  1400.  
  1401.         For an external modem,  a little more work is required unless the 
  1402.         modem  is Smartmodem compatible.  Consult  appendix  D,  EXTERNAL 
  1403.         MODEMS,  for more information on setting up external modems.   If 
  1404.         the  modem requires initialization,  an initialization string can 
  1405.         be specified in the CONFIGURATION SETUP.   This string is sent to 
  1406.         the modem once before the first number is dialed.  The characters 
  1407.         may include the 'C' language convention shown in appendix A.
  1408.  
  1409.         The modem autodial control string is sent immediately before each 
  1410.         phone  number.   For  Smartmodem compatible modems this would  be 
  1411.         'ATDT' for tone dialing and 'ATDP' for pulse dialing.   See phone 
  1412.         number under parameter setup.
  1413.  
  1414.         For a direct connection,  a different sort of setup is used.   To 
  1415.         allow  the use of a modem in conjunction with a direct connection  
  1416.         without having to change the configuration every time,  an  entry 
  1417.         in the parameter file is used.   To specify the direct connection 
  1418.         port,  the "override port",  edit the parameter file (just set it 
  1419.         up normally first) and specify:
  1420.  
  1421.         opo=1
  1422.  
  1423.         where  the number specified is the comm port number.   This  port 
  1424.         number is in effect only for the duration of this connection.
  1425.               
  1426.         All connections begin the same general way.   The Start key  (F3) 
  1427.         is  pressed  on the main menu.   Then a parameter file which  was 
  1428.         created  using  the  parameter  setup  menu  is  selected.    The 
  1429.         selection of a parameter file can take place in two ways.
  1430.  
  1431.         3.5.1. Dialing        3.5.1. Dialing
  1432.  
  1433.         The  first way is to move the arrow keys and position the  cursor 
  1434.         over  the  name  of  the desired  parameter  file.   Pressing  an 
  1435.         alphabetic  key will skip to the first file beginning  with  that 
  1436.         letter.  Pressing the key again will skip to the next, and so on.  
  1437.         Once the cursor is positioned, press the RETURN key to select the 
  1438.         name.  At this point, TERM will begin the connection process.  If 
  1439.         the  file  selected  had the override port line  included  (is  a 
  1440.         direct connection), then connection is immediate and the terminal 
  1441.         mode screen should appear.   If the parameter file was not set up 
  1442.         for  direct  connection,  then  TERM  should  start  the  dialing 
  1443.         process.
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.         TERM 3.10  08/21/85                                  page 17
  1450.         ESTABLISHING CONNECTIONS
  1451.  
  1452.  
  1453.         WII delete, parameter file
  1454.         While the list of parameter files is on the screen, the files may 
  1455.         be  deleted.   Position the cursor on the file to be deleted  and 
  1456.         press the DEL key.   A popup window will appear asking for DEL to 
  1457.         be pressed again for confirmation.  The parameter file (.trm) and 
  1458.         the corresponding script file (.spt) will be deleted.
  1459.  
  1460.         The  dialing  process  has a screen  which  monitors  the  call's 
  1461.         progress.   It  shows  the  current state  of  dialing:  dialing, 
  1462.         ringing, busy, etc.  It shows the amount of time remaining before 
  1463.         the call is aborted.  Finally it shows the number of call retries 
  1464.         remaining.
  1465.  
  1466.         If  a  connection fails for whatever  reason  (busy,  no  answer, 
  1467.         etc.),  TERM will bring up a pop-up window and ask if you want to 
  1468.         retry to establish the connection.  If no is answered, control is 
  1469.         returned to the main menu.   If yes is selected,  TERM puts up  a 
  1470.         pop-up window and prompts for the following information:
  1471.  
  1472.         Number of call retries (0-9999)
  1473.         -------------------------------
  1474.         This  specifies  the  number of tries that TERM  should  make  to 
  1475.         establish a connection before giving up.
  1476.  
  1477.         Timeout after dialing waiting on a ring (1-60)
  1478.         ---------------------------------------------
  1479.         This  delay  specifies the number of seconds that TERM will  wait 
  1480.         before aborting a connection attempt.   30 seconds is the default 
  1481.         valued used when TERM tries to connect the first time.   If  TERM 
  1482.         detects  a ring,  it will reset the timeout counter to this value 
  1483.         to allow extra time to establish the connection.
  1484.  
  1485.  
  1486.         3.5.2. Multidialing        3.5.2. Multidialing
  1487.  
  1488.         The  second  way to select parameter files also initiates  multi-
  1489.         dialing.   This  method  allows a list of parameter files  to  be 
  1490.         contructed.   TERM  will  then  sequence through  this  list  and 
  1491.         attempt to connect to each system.  It will continue to try until 
  1492.         a connection is established,  or until it is aborted.   To set up 
  1493.         multidialing,  position the cursor on the desired parameter file.  
  1494.         Press the space bar to select the parameter file.  An asterik (*) 
  1495.         will  appear  beside the filename.   The parameter  file  can  be 
  1496.         deselected  by pressing the space bar again.   When all parameter 
  1497.         files  have  been selected (up to 10),  press the return  key  to 
  1498.         start the dialing process.
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.         TERM 3.10  08/21/85                                  page 18
  1513.         TERMINAL MODE
  1514.  
  1515.  
  1516.         4. TERMINAL MODE        4. TERMINAL MODE        4. TERMINAL MODE
  1517.  
  1518.         4.1. Status Line        4.1. Status Line
  1519.  
  1520.         Once connection to the remote has been established,  TERM  clears 
  1521.         the  screen  and prints a "Connected to" message followed by  the 
  1522.         Description specified in parameter setup.
  1523.  
  1524.         A status line is displayed across the bottom of the  screen.   It 
  1525.         shows what functions are available and on which key.   The string 
  1526.         displayed on the status line may be modified.  To globally change 
  1527.         the  status line for all parameter files,  add the following line 
  1528.         to TERM.CFG:
  1529.  
  1530.         status=F1:Sav F2:NuSav F3:Dir . . .
  1531.  
  1532.         where  what  follows  the equals sign will be  displayed  in  the 
  1533.         status line.   Adding the line to a parameter file (YOURFILE.TRM) 
  1534.         will  cause  the status line change to be in effect only for  the 
  1535.         specific  parameter  file.   A script file can  also  change  the 
  1536.         status line with the command:
  1537.  
  1538.         set status "THIS IS YOUR STATUS LINE"
  1539.  
  1540.         The script file can reset the status line by issuing the command:
  1541.  
  1542.         set status
  1543.  
  1544.  
  1545.         The following function keys are the default setup for TERM.   All 
  1546.         of these key values except PRNT and BRK may be modified.
  1547.  
  1548.  
  1549.         4.2. Function Keys        4.2. Function Keys
  1550.  
  1551.         F1:Sav   -- TERM allows saving received characters to a file.  F1
  1552.                     toggles  saving on and off.   This is the  equivalent 
  1553.                     function  to  the  ASCII file download  supported  by 
  1554.                     other systems.
  1555.  
  1556.         F2:NuSav -- Allows  the  text saved by F1 to be saved in  a  file 
  1557.                     other  than  the one specified in  the  configuration 
  1558.                     section.  Note that this does not start saving to the 
  1559.                     save  file.   The  F1  key must be pressed  to  start 
  1560.                     saving after the new save file is specified.  See the 
  1561.                     section on ASCII file downloads.
  1562.  
  1563.         F3:AscSnd-- Send an ASCII format file.   Should be used only when 
  1564.                     xmodem   transfers   are  unavailable  or   are   not             
  1565.                     appropriate as when uploading messages to a  bulletin 
  1566.                     board system.
  1567.  
  1568.         F5:Recv  -- Download a file using the xmodem protocol.   This key 
  1569.                     takes you to a screen where parameters are specified.
  1570.  
  1571.         F6:Send  -- Upload  a file using the xmodem protocol.   This  key 
  1572.                     takes you to a screen where parameters are specified.
  1573.  
  1574.  
  1575.         TERM 3.10  08/21/85                                  page 19
  1576.         TERMINAL MODE
  1577.  
  1578.  
  1579.  
  1580.         F8:DOS   -- Goto  MSDOS.   This  feature works only  under  MSDOS 
  1581.                     2.1+.   It  allows you to get into MSDOS and  perform 
  1582.                     functions   such   as   directory,    etc.    without 
  1583.                     disconnecting.
  1584.  
  1585.         F9:Time  -- Displays  the  current  date and time  and  the  time 
  1586.                     elapsed since connection was established.
  1587.  
  1588.         F10:Parms-- Allows  changing  the communication parameters  while 
  1589.                     connected.   (Baud,   parity,   etc.)   All  of   the 
  1590.                     parameters may be modified,  but some host systems do 
  1591.                     not   support  changing  the  baud  rate  during  the 
  1592.                     connection.   Changing  the number of  stopbits  will 
  1593.                     likely cause the transmission to become garbled.   If 
  1594.                     parity stripping is turned off and bizzare characters 
  1595.                     appear intermixed with normal text, then it is likely 
  1596.                     that  the  remote is sending characters with  parity.  
  1597.                     Turning  parity  stripping  back  on  will   probably 
  1598.                     correct the problem. 
  1599.  
  1600.         F12:Abort-- Disconnect from remote.
  1601.  
  1602.         Other  keys  which  have functions in this  mode,  but  were  not 
  1603.         documented on the status line because of space limitations are:
  1604.  
  1605.         F4:Snap  -- Saves  the  contents  of the current  screen  to  the 
  1606.                     current  save file.   This is used when something has 
  1607.                     come  up on the screen before the save key (F1) could 
  1608.                     be pressed.
  1609.  
  1610.         F7:Keys  -- Brings  up  function key definition menu.   The  keys 
  1611.                     specified here are local definitions,  only in effect 
  1612.                     for the duration of the connection.   The values  may 
  1613.                     be  saved  to  the current active parameter  file  by 
  1614.                     going  through  the parameter setup  menu  (F10)  and 
  1615.                     specifying yes to save changes.
  1616.  
  1617.         ALT-D:Dir-- Prompts   for  the  directory  name  and  displays  a 
  1618.                     directory listing including date, time and size.
  1619.  
  1620.         ALT-C:Cmnd--Prompts  for a script file command to  execute.   The 
  1621.                     same  script  commands  that  can  be  executed  from 
  1622.                     function keys may be entered here.
  1623.  
  1624.         ALT-L:Learn-- Enters  'learn mode'  for automatic  generation  of 
  1625.                     script files.
  1626.  
  1627.         PRNT     -- Toggles output to the printer (PRN) on and off.   The 
  1628.                     characters that are received from the remote are sent
  1629.                     to the printer as well.
  1630.  
  1631.         BRK      -- This  key  will send a short  break  to  the  remote 
  1632.                     system.  This is recognized as an "attention key" by
  1633.                     some systems.  (Most UNIX systems for example).
  1634.                  
  1635.  
  1636.  
  1637.  
  1638.         TERM 3.10  08/21/85                                  page 20
  1639.         SCRIPT FILES
  1640.  
  1641.  
  1642.         5. SCRIPT FILES        5. SCRIPT FILES        5. SCRIPT FILES
  1643.  
  1644.         Script  files are used for automatically logging on to  a  remote    
  1645.         system.   They  can also be used to automatically download  files 
  1646.         unattended.  The  script file is located in the same directory as 
  1647.         the  parameter files.   The script file has the same name as  the 
  1648.         parameter  file with a .spt extension.   The script file  can  be 
  1649.         created with any text editor.  The script file will automatically 
  1650.         be  executed  unless a -n is specified on the command  line  when 
  1651.         TERM  is  executed.   During  the  processing  of  script  files, 
  1652.         pressing F12 will abort the script.   You will still be connected 
  1653.         to the remote.
  1654.  
  1655.         If a pattern match fails (MATCH,  PROMPT,  WAIT), the script will 
  1656.         not abort.   The failure must be handled in the script file.   An 
  1657.         option  of -a on the command line will force the script to  abort 
  1658.         if the match fails.   To allow the scripts to handle the  failure 
  1659.         again, you must quit TERM and reexecute it.
  1660.  
  1661.         5.1. String Variables        5.1. String Variables
  1662.  
  1663.         Script  commands  may  be  executed from  script  files  or  from 
  1664.         function keys (see the section on function keys).   The lines may 
  1665.         be up to 128 characters  in  length.   If a percent sign  (%)  is 
  1666.         encountered during processing of a line (except when enclosed  in 
  1667.         quotes in a string),  and a string variable follows it,  then the 
  1668.         value  of the string variable is substituted at that position  in 
  1669.         the line.  For example:
  1670.  
  1671.         accept s1 "Save file name: " ; save %s1
  1672.  
  1673.         This  will  read  a line from the user into string  variable  s1.  
  1674.         Then when the save command is executed,  the value of s1 will  be 
  1675.         used as the save file name.   Variable names may be as long as 32 
  1676.         characters and may consist of alphanumeric characters (A-Z,  0-9) 
  1677.         and  the  underscore (_).   Names must start with  an  alphabetic 
  1678.         character.
  1679.  
  1680.         There  are  some  reserved string variables  which  have  special 
  1681.         actions or values.  These are:
  1682.  
  1683.         quitcmd   --  The   string   that  is  sent  to  the  host   when 
  1684.                       HANGUPAFTER  is specified during a  file  transfer.  
  1685.                       See the section on FILE TRANSFERS.
  1686.  
  1687.         status    --  Setting the status variable will cause its value to 
  1688.                       be  displayed  on the status  line.   Deleting  the 
  1689.                       status  variable  will  cause the  status  line  to 
  1690.                       return to the default value.
  1691.                       Ex.  status " F1:Sav F2:NuSav F3:Asend F4:Snap"
  1692.  
  1693.         date      --  This variable will return the current date.   It is 
  1694.                       not settable.
  1695.                       Ex.  echos %date
  1696.  
  1697.         time      --  This variable will return the current time.   It is 
  1698.                       not settable.
  1699.  
  1700.  
  1701.         TERM 3.10  08/21/85                                  page 21
  1702.         SCRIPT FILES
  1703.  
  1704.  
  1705.  
  1706.         5.2. Script File Commands        5.2. Script File Commands
  1707.  
  1708.  
  1709.         abort     --  Abort  processing  of the current script  file  and 
  1710.                       return to terminal mode.
  1711.  
  1712.         accept    --  Display the specified prompt,  get a line of input, 
  1713.                       and store it in the specified string variable.
  1714.                       Ex.  accept path "Pathname: "
  1715.  
  1716.         alarm     --  Ring the bell.
  1717.  
  1718.         asend     --  Send an ascii file.  Brings up a popup window which 
  1719.                       elicits  transfer  information  and file  name  (F3 
  1720.                       key).  See the section on ASCII file sends.
  1721.  
  1722.         baud      --  Change the baud rate to the specified value.
  1723.                       Ex.  baud 1200
  1724.  
  1725.         cd        --  Change the current directory.   Accepts a string as 
  1726.                       an argument.  If no argument is given, displays the 
  1727.                       current directory.
  1728.                       Ex.  cd "\usr"                    
  1729.  
  1730.         cls       --  Clear the text screen.
  1731.  
  1732.         close     --  Stop output to a save file and close it.
  1733.                       Ex.  close
  1734.  
  1735.         del       --  Delete a file.  Accepts a string as an argument.
  1736.                       Ex.  del "trash.jnk"              
  1737.  
  1738.         delay     --  Delay in milliseconds between sending characters.
  1739.                       This  delay is placed between characters sent using 
  1740.                       the SEND and SENDE commands.   The default value is 
  1741.                       0 which means no delay.
  1742.                       Ex.  delay 50
  1743.  
  1744.         dir       --  Shows  a windowed directory listing.   Brings up  a 
  1745.                       popup  window to prompt for the directory.   If  no 
  1746.                       path given, the default directory is assumed (ALT-D 
  1747.                       key).
  1748.  
  1749.         do        --  Execute another script file.   Recursion up to  ten 
  1750.                       levels is supported.   The file name extension must 
  1751.                       be .spt.
  1752.                       Ex.  do "RBBSPC"
  1753.  
  1754.         dos       --  Invokes  a copy of COMMAND.COM from TERM (F8  key).  
  1755.                       TERM  is  suspended  until EXIT  is  typed  at  the 
  1756.                       command prompt.
  1757.  
  1758.         echo      --  Echos the string argument to the screen.
  1759.                       Ex.  echo "Transferring to TI SIG"
  1760.  
  1761.  
  1762.  
  1763.  
  1764.         TERM 3.10  08/21/85                                  page 22
  1765.         SCRIPT FILES
  1766.  
  1767.  
  1768.         echos     --  Echos  the string argument to the screen and to the 
  1769.                       save file if it is open.
  1770.                       Ex.  echos "Eat at Joe's"
  1771.  
  1772.         else      --  If  the  last "if" expression evaluated FALSE  then  
  1773.                       execute the rest of the line.
  1774.                       Ex.  else echo "Match failed" ; abort
  1775.  
  1776.         fail      --  Abort  execution  of  all nested levels  of  script 
  1777.                       files.   The abort command only aborts the  current 
  1778.                       script file.  FAIL aborts all scripts.
  1779.  
  1780.         goto      --  This  statement transfers control in a script  file 
  1781.                       to the specified label.
  1782.                       Ex.  goto here
  1783.  
  1784.         halt      --  This  is a special command and should only be  used 
  1785.                       for function keys.  This command implements the F12 
  1786.                       (abort) function.
  1787.  
  1788.         hangup    --  FAIL   all  script  files  and  hangup  the  phone.  
  1789.                       Returns control back to MAIN MENU.
  1790.  
  1791.         if        --  Evaluate the following expression and then  execute 
  1792.                       the  rest  of the line if the expression  is  TRUE.  
  1793.                       See the section on script expressions.
  1794.                       Ex.  if !p1 echo "Its getting warm!" ; goto hell
  1795.  
  1796.         keys      --  Brings up the menu to allow specifying function key 
  1797.                       definitions (F7 key).
  1798.  
  1799.         label     --  Label  the  current line with  the  argument.   The 
  1800.                       label  name can consist of alphanumeric  characters 
  1801.                       and  the  underscore (_).   Current  implementation 
  1802.                       restricts  the label to being the only  command  on 
  1803.                       the line.
  1804.                       Ex.  label here
  1805.  
  1806.         learn     --  Brings  the learn mode for automatically generating 
  1807.                       a  script  file  into play.   See  the  section  on 
  1808.                       automatic  script file generation for more  detail. 
  1809.                       (ALT-L key)
  1810.  
  1811.         limit     --  This is the number of hundredths of a second  after 
  1812.                       characters  stop coming which will cause a match to 
  1813.                       fail.  The default is 20 seconds (2000 hundredths).
  1814.                       Ex.  limit 200
  1815.  
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823.  
  1824.  
  1825.  
  1826.  
  1827.         TERM 3.10  08/21/85                                  page 23
  1828.         SCRIPT FILES
  1829.  
  1830.  
  1831.         match     --  Match a string.   If this string is  received  then 
  1832.                       the  match succeeds.   Note that this command  does 
  1833.                       not  care about the context of the string.   If you 
  1834.                       match "new" then it will also match  "renew",  etc.  
  1835.                       LIMIT  controls the timeout of this command.   Case 
  1836.                       of characters is significant.   Match string may be 
  1837.                       up to 10 characters long.   Match is a special case 
  1838.                       of pattern matching and success may be tested  with 
  1839.                       variable p10.
  1840.                       Example:
  1841.                           match "more (y/n)"
  1842.                           if !p10 echo "Match of more failed" ; abort
  1843.  
  1844.         obey      --  Forces  the execution of the string  argument.  The 
  1845.                       example shows the implementation of the ALT-C key.
  1846.                       Ex.  accept s1 "Command: " ; obey %s1
  1847.  
  1848.         output    --  Turns  the  output  of received  characters  during 
  1849.                       script processing on or off.   Arguments are ON  or 
  1850.                       OFF.
  1851.                       Ex.  output on
  1852.  
  1853.         parms     --  Brings  up  a  popup  menu  to  allow  changing  of 
  1854.                       communication  parameters  while  connected  to   a 
  1855.                       remote (F10 key).
  1856.  
  1857.         pat       --  Specify  a pattern (0-9) to look for when the  WAIT 
  1858.                       command  is  executed.   Up to 10 patterns  may  be 
  1859.                       watched for simultaneously.  A pattern may be up to 
  1860.                       10  characters in length.   With no  options,  this 
  1861.                       command  acts like the MATCH command (when used  in 
  1862.                       conjuction  with WAIT).   An equivalent of a  MATCH 
  1863.                       command would be:
  1864.  
  1865.                       pat 1 "more (y/n)" ; wait
  1866.  
  1867.                       The  first  argument  to  the PAT  command  is  the 
  1868.                       pattern number (0-9).   The second argument is  the 
  1869.                       string to watch for.  An optional third argument is 
  1870.                       a  string which is to be transmitted (or @executed) 
  1871.                       when the match occurs.  For example:
  1872.  
  1873.                       pat 1 "more (y/n)" "y\r" ; wait
  1874.  
  1875.                       Options to the PAT command allow a WAIT to continue 
  1876.                       when  a  match occurs (-c),  and can make  the  PAT 
  1877.                       command act like the PROMPT command (-p).
  1878.  
  1879.                       pat -cp 1 "more? (y/n) " "y\r" ; wait
  1880.  
  1881.                       The  previous  command would wait until the  prompt 
  1882.                       string was matched,  send the appropriate response, 
  1883.                       and continue execution of the WAIT command.
  1884.                       Specifying PAT CLEAR will clear all current pattern 
  1885.                       definitions.  See the WAIT and PROMPT commands.
  1886.  
  1887.  
  1888.  
  1889.  
  1890.         TERM 3.10  08/21/85                                  page 24
  1891.         SCRIPT FILES
  1892.  
  1893.  
  1894.         pause     --  Waits  for  the specified  number  of  milliseconds  
  1895.                       before  proceeding.   The  example will wait for  4 
  1896.                       seconds.
  1897.                       Ex. Pause 4000 
  1898.  
  1899.         prompt    --  Match  a  prompt string.   It is assumed  that  the 
  1900.                       string to be matched is a prompt.   In other words, 
  1901.                       a  sequence  of characters is received and  then  a 
  1902.                       pause waiting for user input.   LIMIT and THRESHOLD 
  1903.                       control  the  timing  of  this  command.   Case  of 
  1904.                       characters and blanks are significant.   The  match 
  1905.                       string may be up to 10 characters long.   Prompt is 
  1906.                       a  special case of pattern matching and success  of 
  1907.                       prompt may be tested for with p10.
  1908.                       Example:
  1909.                           prompt "username: "
  1910.                           if !p10 echo "Prompt for username: lost"
  1911.         purgek    --  Purge all keyboard type-ahead.
  1912.  
  1913.         r         --  Brings  up a window to elicit information to  start 
  1914.                       an xmodem file receive (F5 key).
  1915.  
  1916.         rem       --  When  script output is on,  this line does nothing.  
  1917.                       When script output is off,  this line is  displayed 
  1918.                       in  a  pop-up window until another rem  command  is 
  1919.                       encountered or until the script ends.  This is very 
  1920.                       useful  to  show the status of script files  during 
  1921.                       autologon.
  1922.                       Ex.  rem "*** Verifying Password ***"
  1923.  
  1924.         s         --  Brings  up a window to elicit information to  start 
  1925.                       an xmodem file send (F6 key).
  1926.  
  1927.         save      --  Open  a save file and start output.   The  default
  1928.                       path  is  the receive path.  If  no  arguments  are 
  1929.                       specified,  then  a  popup  menu is brought  up  to 
  1930.                       elicit the required information to open a new  save 
  1931.                       file (F2 key).  Other options are:
  1932.                        'save on' - turn saving to file on
  1933.                        'save off' - turn saving to file off
  1934.                        'save  toggle' - toggle saving to file on  or  off 
  1935.                                         (F1 key)
  1936.                       Ex.  save "e:/usr/comm/term/term.sav"
  1937.  
  1938.         send      --  Send  a string.   Control or special characters can 
  1939.                       be  entered  using  the  'C'  programming  language 
  1940.                       conventions.  A backslash (\) followed by an r (for 
  1941.                       return),  b (for backspace),  t (for tab),  or an x 
  1942.                       followed  by  a two-digit hexidecimal  number  (ie. 
  1943.                       \x0b for form feed).  See appendix A.
  1944.                       Ex.  send "Greg Gilley\r"
  1945.  
  1946.  
  1947.  
  1948.  
  1949.  
  1950.  
  1951.  
  1952.  
  1953.         TERM 3.10  08/21/85                                  page 25
  1954.         SCRIPT FILES
  1955.  
  1956.  
  1957.         sende     --  Send a string and wait for echo of each char.  This 
  1958.                       command  does  not  check if the  echoed  character 
  1959.                       matches the one sent and could be used in the  case 
  1960.                       of  passwords when dots,  etc.  are  echoed.   This 
  1961.                       command  allows  pacing with the target system  and 
  1962.                       helps  to  insure that you do not  send  characters 
  1963.                       faster than it can receive them.
  1964.                       Ex.  sende "54001,234\r"
  1965.  
  1966.         set       --  Set  the  specified  string variable to  the  value 
  1967.                       which follows.   If no arguments are specified then 
  1968.                       the   current  string  variable   definitions   are 
  1969.                       displayed.   String  variables  may be  deleted  by 
  1970.                       specifying the set command,  the variable name, but 
  1971.                       no value.  The command
  1972.  
  1973.                       set s1
  1974.  
  1975.                       will delete the string variable s1.
  1976.                       Ex.   set quitcmd "\x03\poff\r"
  1977.  
  1978.         sleep     --  Waits  the specified number of tenths of  a  second 
  1979.                       before proceeding with script file execution.   The 
  1980.                       example will wait 4 seconds.
  1981.                       Ex.   sleep 40
  1982.  
  1983.         snap      --  Save the contents of the screen to the current save 
  1984.                       file (F4 key).
  1985.  
  1986.  
  1987.         threshold --  This command is used in conjunction with the PROMPT 
  1988.                       and WAIT commands.  While PROMPT or WAIT is waiting 
  1989.                       for  a prompt,  this is the amount of time to  wait 
  1990.                       after characters stop coming from the remote before 
  1991.                       testing  for  a match.   The time is  specified  in 
  1992.                       tenths of a second.
  1993.                       Ex.  threshold 20 
  1994.  
  1995.         time      --  Displays  the  current date and time and  the  time 
  1996.                       elapsed  since  the connection was established  (F9 
  1997.                       key).
  1998.  
  1999.         wait      --  Monitor  incoming  characters  and  wait  until   a 
  2000.                       pattern  specified  by the PAT command is  matched.  
  2001.                       If  a pattern is not matched and no characters  are 
  2002.                       received  for the time period specified  by  LIMIT, 
  2003.                       the  wait  will abort and set the  NONE  expression 
  2004.                       variable  to  TRUE.   An optional numeric  argument 
  2005.                       specifies  an override to LIMIT  in  seconds.   The 
  2006.                       command
  2007.  
  2008.                       wait 3
  2009.  
  2010.                       will  only  wait 3 seconds  after  characters  stop 
  2011.                       coming to abort the wait.
  2012.  
  2013.  
  2014.  
  2015.  
  2016.         TERM 3.10  08/21/85                                  page 26
  2017.         SCRIPT FILES
  2018.  
  2019.  
  2020.                       When   a  pattern  is  matched,   a   corresponding 
  2021.                       expression  variable  (p0-p9)  is set  and  may  be 
  2022.                       tested  with  IF and WHILE  statements.   The  WAIT 
  2023.                       command  will  normally  stop after  a  pattern  is 
  2024.                       matched.   The PAT command has an option (-c) which 
  2025.                       will flag the pattern as matched, send any optional 
  2026.                       string, and continue waiting for pattern matches.
  2027.  
  2028.         while     --  While the following expression is TRUE, execute the 
  2029.                       rest of the line.   The expression variable L is  a 
  2030.                       special  case to allow counting the number of loops 
  2031.                       in a while statement.   It is incremented each time 
  2032.                       the statement is executed.
  2033.                       Ex.  while (L<3) echo "Hi there!"
  2034.  
  2035.  
  2036.  
  2037.         See  appendix  A  for an explanation of characters which  can  be 
  2038.         placed in a script string.
  2039.  
  2040.  
  2041.  
  2042.  
  2043.  
  2044.  
  2045.  
  2046.  
  2047.  
  2048.  
  2049.  
  2050.  
  2051.  
  2052.  
  2053.  
  2054.  
  2055.  
  2056.  
  2057.  
  2058.  
  2059.  
  2060.  
  2061.  
  2062.  
  2063.  
  2064.  
  2065.  
  2066.  
  2067.  
  2068.  
  2069.  
  2070.  
  2071.  
  2072.  
  2073.  
  2074.  
  2075.  
  2076.  
  2077.  
  2078.  
  2079.         TERM 3.10  08/21/85                                  page 27
  2080.         SCRIPT EXPRESSIONS
  2081.  
  2082.  
  2083.         5.3. Script Expressions        5.3. Script Expressions
  2084.  
  2085.         The  expressions  in  script  files support  almost  the  full  C 
  2086.         language expression capability.
  2087.  
  2088.         The   arithmetic   operators  are   supported:    addition   (+), 
  2089.         subtraction (-),  multiplication (*),  division (/),  and modulus 
  2090.         (%).   The  modulus operator returns the remainder of a  division 
  2091.         operation, so 5 % 2 would return 1.
  2092.  
  2093.         The relational operators are:   greater than (>),  less than (<), 
  2094.         greater than or equal to (>=),  less than or equal to (<=), equal 
  2095.         to (==), and not equal to (!=).
  2096.  
  2097.         The logical operators are:  logical and (&&) and logical or (||).
  2098.         The unary logical operator not (!) is supported.
  2099.  
  2100.         The  bitwise logical operators supported are:   bitwise and  (&), 
  2101.         bitwise  or (|),  bitwise exclusive or (^),  left shift (<<)  and 
  2102.         right  shift  (>>).   One unary operator is  supported  as  well:  
  2103.         one's complement (~).
  2104.  
  2105.         The  conditional  operator  or  conditional  expression  (?:)  is 
  2106.         supported.  It takes the place of a series of statements such as:
  2107.  
  2108.         if (a > b)
  2109.             z = a ;
  2110.         else
  2111.             z = b ;
  2112.  
  2113.         This statement can be rewritten as:
  2114.  
  2115.         z = (a > b) ? a : b ;
  2116.  
  2117.         The script expressions also support the operator precedence level 
  2118.         used by the C language.   The following table lists the operators 
  2119.         in order from highest precedence to lowest.  Those entries on the 
  2120.         same  line have equal precedence and are evaluated  according  to 
  2121.         the corresponding grouping entry.   For example,   multiplication 
  2122.         and  division are higher precedence than addition and subtraction 
  2123.         so the expression 5*3+4/2 would evalute to 17 (15+2).   Note that 
  2124.         the  bitwise  operators fall below the logical operators  on  the 
  2125.         chart.   This  means  that an expression which  ANDs  two  values 
  2126.         together  and compares the result to another value would have  to 
  2127.         be written as ((a & b) == 4).
  2128.  
  2129.  
  2130.  
  2131.  
  2132.  
  2133.  
  2134.  
  2135.  
  2136.  
  2137.  
  2138.  
  2139.  
  2140.  
  2141.  
  2142.         TERM 3.10  08/21/85                                  page 28
  2143.         SCRIPT EXPRESSIONS
  2144.  
  2145.  
  2146.  
  2147.  
  2148.  
  2149.             =======================================================
  2150.             |   OPERATOR               |       GROUPING           |
  2151.             =======================================================
  2152.             |   ()              highest|     left to right        |
  2153.             |--------------------------|--------------------------|
  2154.             |   !  ~                   |     left to right        |
  2155.             |--------------------------|--------------------------|
  2156.             |   *  /  %                |     left to right        |
  2157.             |--------------------------|--------------------------|
  2158.             |   +  -                   |     left to right        |
  2159.             |--------------------------|--------------------------|
  2160.             |   <<  >>                 |     left to right        |
  2161.             |--------------------------|--------------------------|
  2162.             |   <  <=  >  >=           |     left to right        |
  2163.             |--------------------------|--------------------------|
  2164.             |   ==  !=                 |     left to right        |
  2165.             |--------------------------|--------------------------|
  2166.             |   &                      |     left to right        |
  2167.             |--------------------------|--------------------------|
  2168.             |   ^                      |     left to right        |
  2169.             |--------------------------|--------------------------|
  2170.             |   |                      |     left to right        |
  2171.             |--------------------------|--------------------------|
  2172.             |   &&                     |     left to right        |
  2173.             |--------------------------|--------------------------|
  2174.             |   ||                     |     left to right        |
  2175.             |--------------------------|--------------------------|
  2176.             |   ?:               lowest|     right to left        |
  2177.             -------------------------------------------------------
  2178.  
  2179.              Table 5-1: Operators in Order of Descending Priority             Table 5-1: Operators in Order of Descending Priority             Table 5-1: Operators in Order of Descending Priority
  2180.  
  2181.  
  2182.         Not all of the operators will be useful in the current release of 
  2183.         TERM.   In  particular,  the bitwise operators will probably  not 
  2184.         need to be used at this time.
  2185.  
  2186.         There  are  several  variables and functions  which  are  defined 
  2187.         within TERM.
  2188.  
  2189.         5.4. Variables        5.4. Variables
  2190.  
  2191.         baud     --  This  variable  has the value of the current  active 
  2192.                      baud rate for TERM.  For 1200 baud, it has the value 
  2193.                      1200.
  2194.                      Ex.  if (baud == 1200) echo "you're talking fast"
  2195.                        
  2196.         c        --  The value of this variable is set depending upon the 
  2197.                      state of the carrier detect signal on the modem.  If 
  2198.                      the  carrier  detect is active,  its value  is  one, 
  2199.                      otherwise it is zero.
  2200.                      Ex.  if (!c) echos "carrier lost" ; hangup
  2201.  
  2202.  
  2203.  
  2204.  
  2205.         TERM 3.10  08/21/85                                  page 29
  2206.         SCRIPT EXPRESSIONS
  2207.  
  2208.  
  2209.  
  2210.         l        --  This  variable  has  a special use  with  the  WHILE 
  2211.                      command.   It  counts the number of times the  while 
  2212.                      loop executes.
  2213.                      Example:  
  2214.                      while (L<3) echo "outer" ; while (l<2) echo " inner"
  2215.  
  2216.         q        --  Q  returns TRUE if characters are queued up from the 
  2217.                      host.  If characters have been received, but not yet 
  2218.                      processed, Q will return TRUE.  This variable can be 
  2219.                      used to help the remote system "recognize" you.
  2220.                      Example:
  2221.                        while (L<5 && !q) send "\r" ; pause 30
  2222.                        if (!q) echo "NO RESPONSE" ; abort         
  2223.  
  2224.         p0-p9    --  These  variables are set depending upon the  pattern 
  2225.                      flags  set  up  by  the PAT  command  and  the  WAIT 
  2226.                      command.   If a pattern is matched, the variable for 
  2227.                      that   pattern  (p0  through  p9)  is  set  to   one 
  2228.                      otherwise, its value is zero.
  2229.                      Ex.  if (p1 || p2) echo "We matched pattern 1 or 2"
  2230.  
  2231.         p10      --  This  variable  is set depending on the result of  a 
  2232.                      MATCH  or PROMPT command.   If the MATCH  or  PROMPT 
  2233.                      statement was sucessful, p10 will be TRUE.
  2234.  
  2235.         none     --  If  no  patterns were matched during a WAIT  command 
  2236.                      (in  other words,  the WAIT timed  out),  then  this 
  2237.                      flag is set to one, otherwise it is zero.
  2238.  
  2239.  
  2240.         5.5. Functions        5.5. Functions
  2241.  
  2242.  
  2243.         f("file") -- Checks  to  see  if the specified  file  exists  and 
  2244.                      returns  a  one if it exists and a zero if  it  does 
  2245.                      not.
  2246.                      Example:
  2247.                      set fname "junk.out"
  2248.                      if f(%fname) echo "FILE ALREADY EXISTS" ; goto again
  2249.                      else save %fname
  2250.  
  2251.          
  2252.  
  2253.  
  2254.  
  2255.  
  2256.  
  2257.  
  2258.  
  2259.  
  2260.  
  2261.  
  2262.  
  2263.  
  2264.  
  2265.  
  2266.  
  2267.  
  2268.         TERM 3.10  08/21/85                                  page 30
  2269.         AUTOMATIC SCRIPT GENERATION
  2270.  
  2271.  
  2272.         5.6. Automatic Script Generation        5.6. Automatic Script Generation
  2273.  
  2274.         After using the script files for some time myself,  I noticed how 
  2275.         much  trouble it was to write down (or capture) all of the  logon 
  2276.         prompts,  etc. that are required to log on to a system.  Wouldn't 
  2277.         it be nice if the computer did all that for you?  Well, I finally 
  2278.         got fed up and this is the result.  The script generator will not 
  2279.         generate  perfect  script files,  but it sure does help with  the 
  2280.         prompt/response problem.
  2281.  
  2282.         The script generator works by watching the communcations line for 
  2283.         characters and then the responses to those characters.   He keeps 
  2284.         track of the last several characters received and when you  start 
  2285.         typing, he figures that a prompt must have been received.  DO NOT 
  2286.         TYPE AHEAD.   This will only serve to confuse the prompt watcher.  
  2287.         Just  go through your login sequence normally (backspaces  should 
  2288.         be  handled  properly),  and  the script file will  be  generated 
  2289.         properly.
  2290.  
  2291.         To  enter  the script generator,  press the ALT-L key  after  the 
  2292.         connection  has been established.   This will execute  the  LEARN 
  2293.         command and start the generation process.  Then proceed with your 
  2294.         normal login sequence.  Once you have reached the point where you 
  2295.         want  control  of the host each time you logon (probably at  some 
  2296.         command prompt), press the F12 key to end the script generation.
  2297.  
  2298.         The  script will be written to a file with the same name  as  the 
  2299.         current active parameter file,  but with a .TST extension.   If a 
  2300.         file  with  the .TST extension already exists,  then it  will  be 
  2301.         changed to .TS1.  If the .TS1 file exists,  it will write to .TS2 
  2302.         and overwrite any existing .TS2 file.   You then need to edit the 
  2303.         file to add any changes that are necessary and rename it to .SPT.
  2304.  
  2305.         The  reason  editing  is probably required is  that  the  current 
  2306.         implementation cannot recognize delays between characters.   Most 
  2307.         systems  require you to press one or two carriage  returns  after 
  2308.         connection before it will recognize you.   These carriage returns 
  2309.         usually have pauses between them.   Therefore,  the first part of 
  2310.         the  script  file  will probably have to be edited to  add  these 
  2311.         delays. 
  2312.  
  2313.  
  2314.  
  2315.  
  2316.  
  2317.  
  2318.  
  2319.  
  2320.  
  2321.  
  2322.  
  2323.  
  2324.  
  2325.  
  2326.  
  2327.  
  2328.  
  2329.  
  2330.  
  2331.         TERM 3.10  08/21/85                                  page 31
  2332.         AUTOMATIC SCRIPT GENERATION
  2333.  
  2334.  
  2335.         5.7. Example Script Files        5.7. Example Script Files
  2336.  
  2337.            This is a script file that I use for RBBS-PC type boards.
  2338.  
  2339.         output off
  2340.         rem  "*** Connecting to Jimnet ***"
  2341.         while (L<5 && !q) send "\r" ; sleep 40
  2342.         if (!q) echo "NO RESPONSE" ; abort
  2343.         rem  "*** Answering useless prompts ***"
  2344.         prompt "Name? "
  2345.         if (!p10) echo "Name?  NEVER MATCHED" ; abort
  2346.         rem   "*** Sending name ***"
  2347.         sende "FIRST\r"
  2348.         match "Name? "
  2349.         sende "LAST\r"
  2350.         match "echo)? "
  2351.         rem   "*** Sending Password ***"
  2352.         send "PASSWORD\r"
  2353.  
  2354.         Just  replace  FIRST with your first name,  LAST with  your  last 
  2355.         name,  and PASSWORD with you password.   Be forewarned that there 
  2356.         is really no standard prompt sequence for RBBS-PC boards.  Do not 
  2357.         use  the  output off statement until the script has  been  tested 
  2358.         with the target system.
  2359.  
  2360.             Here is one that might be used for COMPUSERVE(tm).
  2361.  
  2362.         output off
  2363.         rem  "*** Connecting to Compuserv ***"
  2364.         sleep 30
  2365.         send "\x03"
  2366.         prompt "User ID: "
  2367.         rem  "*** Sending user id ***"
  2368.         sende "USER,ID\r"
  2369.         rem  "*** Sending password ***"
  2370.         prompt "Password: "
  2371.         send "PASSWORD\r"
  2372.         sleep 20
  2373.         match "!"
  2374.  
  2375.         Replace  USER,ID  with  your  user  id,  and  PASSWORD  with  you 
  2376.         password.   You  could  even  add commands to send  you  to  your 
  2377.         favorite SIG.
  2378.  
  2379.  
  2380.  
  2381.  
  2382.  
  2383.  
  2384.  
  2385.  
  2386.  
  2387.  
  2388.  
  2389.  
  2390.  
  2391.  
  2392.  
  2393.  
  2394.         TERM 3.10  08/21/85                                  page 32
  2395.         FILE TRANSFERS
  2396.  
  2397.  
  2398.  
  2399.         6. FILE TRANSFERS        6. FILE TRANSFERS        6. FILE TRANSFERS
  2400.  
  2401.         6.1. Xmodem, Modem7, Telink        6.1. Xmodem, Modem7, Telink
  2402.         TERM  supports  several file transfer protocols.   All  of  these 
  2403.         transfers  are  based on the xmodem transfer protocol  originally 
  2404.         devised by Ward Christensen.  The xmodem protocol allows transfer 
  2405.         of  files with error correction.   It allows single files  to  be 
  2406.         transferred  between systems and is almost universally supported.  
  2407.         Modem7  is  an  extension of xmodem and allows  batch  mode  file 
  2408.         transfers.   This means that multiple files can be sent with  one 
  2409.         command (*.exe for example).   Modem7 is supported mainly on CP/M 
  2410.         based bulletin boards.   Telink is an extension to modem7 done by 
  2411.         Tom Jennings, author of the FIDO bbs system.  It allows the batch 
  2412.         file  transfers but also transfers file information.   File size, 
  2413.         date,  and time are all sent across so that the received file  is 
  2414.         virtually identical to the original.   Telink is supported on the 
  2415.         FIDO bulletin board system.
  2416.           
  2417.         TERM  supports  CRC (cyclic redundancy check) error  checking  as 
  2418.         well  as  the standard checksum error  checking.   Some  bulletin 
  2419.         boards do not support the CRC type of error checking.  Check with 
  2420.         the  system operator of the board before trying.   Boards that do 
  2421.         support CRC checking are Compuserve,  FIDO,  and most CP/M  based 
  2422.         systems.   Boards  that do not support CRC checking are  RBBS-PC, 
  2423.         TBBS,  and NOCHANGE.   Some RBBS-PC and TBBS boards are beginning 
  2424.         to support CRC error checking.
  2425.  
  2426.         TERM reports and keeps count of errors during file  transmission.  
  2427.         If  an  error  occurs,  TERM will either resend the block  or  if 
  2428.         receiving,  will  request a retransfer.   The NAKed blocks  count 
  2429.         shows the number of errors during a send.  The Error Blocks count 
  2430.         shows the number of errors during a receive.
  2431.  
  2432.         The  error  count  is  given only as an  indication  of  how  the 
  2433.         transfer is proceeding.   If too many errors are  occurring,  you 
  2434.         may  wish to abort the transfer (via F12) and retry again  later.  
  2435.         When receiving, if ten errors occur in a row, TERM will abort the 
  2436.         transfer.   The  connection  is simply too poor to  facilitate  a 
  2437.         transfer.
  2438.  
  2439.         TERM  is set up to make file transfers with the highest  possible 
  2440.         throughput.   This  causes  problems  for some  systems  such  as 
  2441.         mainframes  where  long  delays between characters  sent  by  the 
  2442.         mainframe can cause synchronization problems.  TERM allows you to 
  2443.         modify  the  timing parameters to allow transfers to  occur  with 
  2444.         these systems.   To change them,  edit the parameter file and add 
  2445.         two lines:
  2446.  
  2447.         xm_char=10
  2448.         xm_block=20
  2449.  
  2450.         (Please  do  not  put spaces between  the  characters.)   Xm_char 
  2451.         specifies maximum delay between characters in seconds.   Xm_block 
  2452.         specifies  maximum delay between blocks in seconds.   The  values 
  2453.         shown above are the ones recommended for Compuserve.  The default 
  2454.         values are xm_char=1 and xm_block=10.
  2455.  
  2456.  
  2457.         TERM 3.10  08/21/85                                  page 33
  2458.         FILE TRANSFERS
  2459.  
  2460.  
  2461.         When   a  receive  is  started,   most  systems  will  tell   you 
  2462.         approximately  how  long  the transfer will  take  and  how  many 
  2463.         "sectors"  (or "blocks") the file takes.   You can use the number 
  2464.         of  sectors to help you keep track of the  transfer.   Enter  the 
  2465.         number  of sectors at the prompt when setting up a file  receive. 
  2466.         If you do not know the number of sectors, but do know the size of 
  2467.         the file, then enter the size of the file in bytes followed by an 
  2468.         'L' (ie.  34567L).  TERM will calculate the number of sectors for 
  2469.         you.   TERM will also check the amount of disk space available on 
  2470.         the disk and determine if there is room for the file.
  2471.  
  2472.         There  is an internal buffer that TERM uses for storing  sections 
  2473.         of  the  file  as  it is being  transmitted.   TERM  buffers  the 
  2474.         incoming and outgoing sectors to reduce the amount of time  spent 
  2475.         accessing  the disk during a transfer.   The default size of this 
  2476.         buffer is 16K bytes.  This size is good for floppy-based systems, 
  2477.         but   not   really  necessary  for  winchester   based   systems.  
  2478.         Winchester  users may want to reduce the size of this buffer  and 
  2479.         allow TERM to run in a smaller amount of memory.   To change this 
  2480.         buffer,  edit  the  configuration  file (TERM.CFG)  and  add  the 
  2481.         following line:
  2482.  
  2483.         bufsize=4096
  2484.  
  2485.         (please do not put extra spaces).   This will set the buffer size 
  2486.         to 4K.   You can set it to any value and TERM will round it to  a 
  2487.         multiple  of  128 (the size of a block during transfer).   It  is 
  2488.         recommended  that the size does not exceed 32K bytes.   Users  of 
  2489.         systems  with  128K memory may need to reduce the  size  of  this 
  2490.         buffer to get TERM to run.           
  2491.  
  2492.  
  2493.  
  2494.  
  2495.  
  2496.  
  2497.  
  2498.  
  2499.  
  2500.  
  2501.  
  2502.  
  2503.  
  2504.  
  2505.  
  2506.  
  2507.  
  2508.  
  2509.  
  2510.  
  2511.  
  2512.  
  2513.  
  2514.  
  2515.  
  2516.  
  2517.  
  2518.  
  2519.  
  2520.         TERM 3.10  08/21/85                                  page 34
  2521.         ASCII FILE TRANSFERS
  2522.  
  2523.  
  2524.  
  2525.         6.2. ASCII File Transfers        6.2. ASCII File Transfers
  2526.  
  2527.         ASCII file transfers are generally more difficult to achieve than 
  2528.         xmodem  based  transfers.   The xmodem   file  transfer  protocol 
  2529.         includes  handshaking to keep the computers from sending data too 
  2530.         quickly to each other.   When working with ASCII  text,  however, 
  2531.         most  systems  do not have provisions for controlling data  flow.  
  2532.         If both computers support xon/xoff handshaking,  this makes ASCII 
  2533.         file  transfers easier.   But most microcomputer  bulletin  board 
  2534.         systems do not support it,  so the burden of regulating data flow 
  2535.         falls on the system that is sending the data.
  2536.  
  2537.         6.2.1. ASCII file send        6.2.1. ASCII file send
  2538.  
  2539.         TERM  is set up to allow ASCII files to be sent to another system 
  2540.         under most conditions.   A number of conditions are changeable to 
  2541.         allow pacing with the remote system.
  2542.  
  2543.         When  ASCSND  is selected (F3 key),  TERM brings up  a  menu  and 
  2544.         prompts for the following information:
  2545.  
  2546.         Wait for character echo (y/n)
  2547.         -----------------------------
  2548.         Answering  yes  will cause TERM to wait for the echo of the  last 
  2549.         character sent before sending the next one.  This option will cut 
  2550.         the  effective  speed  of the transfer in  half,  but  is  almost 
  2551.         essential for systems which do not allow type-ahead.
  2552.  
  2553.         Delay between characters (msecs)
  2554.         --------------------------------
  2555.         This parameter specifies the delay in milliseconds that TERM will 
  2556.         pause after sending a character before sending the next one.
  2557.  
  2558.         Delay after sending eol (msecs)
  2559.         -------------------------------
  2560.         TERM  breaks  ASCII files into their logical  components,  lines, 
  2561.         while  sending  them.   This  parameter specifies  the  delay  in 
  2562.         milliseconds  that TERM pauses after sending the  end-of-line  to 
  2563.         the receiving system.
  2564.  
  2565.         EOL string (CR)
  2566.         ---------------
  2567.         This  parameter specifies the characters that will be sent to the 
  2568.         receiving  system to indicate end-of-line.   TERM will  intercept 
  2569.         carriage return/linefeed sequences and send this string in  their 
  2570.         place.   The default value is carriage return only.  See appendix 
  2571.         A for valid characters.
  2572.  
  2573.         Prompt after EOL
  2574.         ----------------
  2575.         This  is the string that the receiving system uses to prompt  for 
  2576.         the  next line.   TERM will wait for this prompt after sending an 
  2577.         end-of-line sequence.
  2578.  
  2579.  
  2580.  
  2581.  
  2582.  
  2583.         TERM 3.10  08/21/85                                  page 35
  2584.         ASCII FILE TRANSFERS
  2585.  
  2586.  
  2587.         View data (y/n)
  2588.         ---------------
  2589.         This allows the data to be viewed as it is being transmitted.
  2590.  
  2591.  
  2592.         While the transfer is in progress,  TERM will display a  flashing 
  2593.         message  in  the  status  line  to  indicate  that  something  is 
  2594.         happening.
  2595.  
  2596.  
  2597.         6.2.2. ASCII file receive        6.2.2. ASCII file receive
  2598.  
  2599.         TERM  uses  the  save file to handle  ASCII  file  receives.   To 
  2600.         download a file,  press F2 for NuSav.   This will bring up a menu 
  2601.         allowing a new save file to be specified.   Enter the name of the 
  2602.         file.   If the file already exists,  TERM will display a message.  
  2603.         The destination file may be appended to or created from  scratch.  
  2604.         Once  the file information has been specified,  you will  reenter 
  2605.         terminal  mode.   SAVING HAS NOT BEGUN AT THIS POINT.   To  begin 
  2606.         saving,  press  the  F1  (Sav) key.   This will  start  the  file 
  2607.         receive.   When the transfer is completed, press F1 again to turn 
  2608.         saving off.  If you wish to be able to capture information to the 
  2609.         file TERM.SAV again, press F2 (NuSav) and specify TERM.SAV as the 
  2610.         save file name.
  2611.  
  2612.         If  you  want saving to the new save file to begin  automatically 
  2613.         after it is specified with NuSav,  the F2 key may be modified  to 
  2614.         do this.   From the MAIN MENU,  press the F7 key (Fkeys).  A list 
  2615.         of  the current definitions is shown.   In answer to the  prompt, 
  2616.         enter  F2 as the key name.   Specify the following string as  the 
  2617.         key value:
  2618.  
  2619.         @save ; save on
  2620.  
  2621.         Enter  no to the prompt for defining more keys.   The F2 key will 
  2622.         now automatically begin saving after the save file is specified. 
  2623.  
  2624.  
  2625.  
  2626.  
  2627.  
  2628.  
  2629.  
  2630.  
  2631.  
  2632.  
  2633.  
  2634.  
  2635.  
  2636.  
  2637.  
  2638.  
  2639.  
  2640.  
  2641.  
  2642.  
  2643.  
  2644.  
  2645.  
  2646.         TERM 3.10  08/21/85                                  page 36
  2647.         TERMINAL EMULATION
  2648.  
  2649.  
  2650.         7. TERMINAL EMULATION        7. TERMINAL EMULATION        7. TERMINAL EMULATION
  2651.  
  2652.         7.1. VT100 Escape Sequences Supported        7.1. VT100 Escape Sequences Supported
  2653.  
  2654.         The following escape sequence in VT100 mode are supported (wholly 
  2655.         or in part):
  2656.  
  2657.                ESC 7           Save cursor position and attribute
  2658.                ESC 8           Restore cursor position and attribute
  2659.                ESC D           Move down one line in region
  2660.                ESC E           Beginning of next line in region
  2661.                ESC H           Horizontal tab set
  2662.                ESC M           Move up one line in region
  2663.                ESC Z           Status reports (returns ESC [?1;0c )
  2664.                ESC c           Reset terminal
  2665.                ESC =           Alternate keypad mode
  2666.                ESC >           Numeric keypad mode
  2667.                ESC (0          Graphics primary character set
  2668.                ESC (A          UK primary character set     
  2669.                ESC (B          US primary character set
  2670.                ESC )0          Graphics secondary character set
  2671.                ESC )A          UK secondary character set     
  2672.                ESC )B          US secondary character set
  2673.                ESC [ Pl;Pc H   Position cursor
  2674.                ESC [ J         Erase to end of screen
  2675.                ESC [ 0 J       Erase to end of screen
  2676.                ESC [ 1 J       Erase to beginning of screen     
  2677.                ESC [ 2 J       Erase entire screen
  2678.                ESC [ K         Erase to end of line
  2679.                ESC [ 0 K       Erase to end of line
  2680.                ESC [ 1 K       Erase to beginning of line
  2681.                ESC [ 2 K       Erase entire line
  2682.                ESC [ Pn L      Insert line
  2683.                ESC [ Pn M      Delete line
  2684.                ESC [ Pn P      Delete character
  2685.                ESC [ Pn c      Status reports (returns ESC [?1;0c )
  2686.                ESC [ Pl;Pc f   Position cursor
  2687.                ESC [ g         Horizontal tab clear (current column)
  2688.                ESC [ 0 g       Horizontal tab clear (current column)
  2689.                ESC [ 3 g       Clear all tabs
  2690.                ESC [ Pn h      Set mode (see modes below)
  2691.                ESC [ Pn l      Reset mode (see modes below)
  2692.                ESC [ Pn m      Set attributes (0-default, 1-bold,
  2693.                                    4-underline, 5-blink, 7-reverse,
  2694.                                    30-black, 31-red, 32-green, 33-yellow,
  2695.                                    34-blue, 35-magenta, 36-cyan, 
  2696.                                    37-white)
  2697.                ESC [ 5 n       Status report (returns ESC[0n)
  2698.                ESC [ 6 n       Report cursor position
  2699.                ESC [ Pt;Pb r   Define scrolling region
  2700.  
  2701.         In addition,  a non-standard escape sequence was added to control 
  2702.         the cursor type.  This was added to support the Octacomm card for 
  2703.         TI minicomputers.
  2704.  
  2705.                ESC [ Pn v      Set cursor type (0-on, 1-off, 3-steady,
  2706.                                     5-blink)
  2707.  
  2708.  
  2709.         TERM 3.10  08/21/85                                  page 37
  2710.         TERMINAL EMULATION
  2711.  
  2712.  
  2713.  
  2714.         The modes which are supported by this emulator and can be set  by 
  2715.         the  Set mode escape sequence and reset by the Reset mode  escape 
  2716.         sequence  include the following. 
  2717.  
  2718.                     ?1  Cursor key mode
  2719.                     ?2  VT52 mode (Reset mode only)               
  2720.                     4   Insert character mode
  2721.                     ?5  Reverse screen               
  2722.                     ?6  Origin mode
  2723.                     ?7  Auto wrap mode
  2724.                     ?8  Auto repeat
  2725.                     20  Newline mode
  2726.  
  2727.  
  2728.  
  2729.         7.2. VT52 Escape Sequences Supported        7.2. VT52 Escape Sequences Supported
  2730.  
  2731.         In VT52 mode, the following escape sequences are supported:
  2732.  
  2733.  
  2734.                ESC <           Enter ANSI (VT100) mode
  2735.                ESC =           Enter alternate keypad mode           
  2736.                ESC >           Numeric keypad mode 
  2737.                ESC F           Select graphics set
  2738.                ESC G           Select US character set
  2739.                ESC A           Move cursor up
  2740.                ESC B           Move cursor down
  2741.                ESC C           Move cursor right
  2742.                ESC D           Move cursor left
  2743.                ESC H           Home cursor
  2744.                ESC Y Pl Pc     Position cursor 
  2745.                ESC I           Reverse line feed
  2746.                ESC K           Erase to end of line
  2747.                ESC J           Erase to end of screen
  2748.                ESC Z           Identify -- response ESC / Z
  2749.  
  2750.  
  2751.         7.3. Cursor Keys        7.3. Cursor Keys
  2752.  
  2753.         The  cursor  keys generate the following codes depending  on  the 
  2754.         cursor key mode which is set by a host application program and on 
  2755.         the emulation mode (VT100 or VT52). 
  2756.  
  2757.              Key      Cursor Mode Reset    Cursor Mode Set       VT52
  2758.             
  2759.             Up          ESC [ A              ESC O A            ESC A
  2760.             Down        ESC [ B              ESC O B            ESC B
  2761.             Right       ESC [ C              ESC O C            ESC C
  2762.             Left        ESC [ D              ESC O D            ESC D
  2763.  
  2764.         Table 7-1: Cursor Keys        Table 7-1: Cursor Keys        Table 7-1: Cursor Keys
  2765.  
  2766.  
  2767.  
  2768.  
  2769.  
  2770.  
  2771.  
  2772.         TERM 3.10  08/21/85                                  page 38
  2773.         TERMINAL EMULATION
  2774.  
  2775.  
  2776.         7.4. Numeric Keypad        7.4. Numeric Keypad
  2777.  
  2778.         The  keypad  on  the  right  side  of the  TI  PC  has  the  same 
  2779.         configuration as the VT100 keypad.   The top four keys on the  TI 
  2780.         PC  keypad  correspond  to the PF keys on the  VT100  keypad  and 
  2781.         always  generate  the PF key sequence.    The other  keypad  keys 
  2782.         either  generate their labeled code or a special escape  sequence 
  2783.         depending  on the alternate keypad mode set by a host application 
  2784.         program.   The keypad  keys  generate  the  following codes  when  
  2785.         in   alternate   keypad   mode and their  labeled  code  when  in 
  2786.         numeric  keypad  mode.   The emulation mode  (VT100,  VT52)  also 
  2787.         affects the escape sequence generated.
  2788.  
  2789.  
  2790.            KEY    VT100      VT52             KEY       VT100      VT52
  2791.             0    ESC O p    ESC ? p            9       ESC O y    ESC ? y
  2792.             1    ESC O q    ESC ? q            ,       ESC O l    ESC ? l
  2793.             2    ESC O r    ESC ? r            -       ESC O m    ESC ? m
  2794.             3    ESC O s    ESC ? s            .       ESC O n    ESC ? n
  2795.             4    ESC O t    ESC ? t            ENTER   ESC O M    ESC ? M
  2796.             5    ESC O u    ESC ? u        PF1 =       ESC O P    ESC P
  2797.             6    ESC O v    ESC ? v        PF2 +       ESC O Q    ESC Q
  2798.             7    ESC O w    ESC ? w        PF3 SPAC    ESC O R    ESC R
  2799.             8    ESC O x    ESC ? x        PF4 TAB     ESC O S    ESC S
  2800.  
  2801.                             Table 7-2: Numeric Keypad Codes                            Table 7-2: Numeric Keypad Codes                            Table 7-2: Numeric Keypad Codes
  2802.  
  2803.  
  2804.         Break Key
  2805.         ---------
  2806.         Pressing  shift-break will cause a short break to be sent.   This 
  2807.         is recognizable as an "attention" key on many systems.
  2808.  
  2809.  
  2810.  
  2811.  
  2812.  
  2813.  
  2814.  
  2815.  
  2816.  
  2817.  
  2818.  
  2819.  
  2820.  
  2821.  
  2822.  
  2823.  
  2824.  
  2825.  
  2826.  
  2827.  
  2828.  
  2829.  
  2830.  
  2831.  
  2832.  
  2833.  
  2834.  
  2835.         TERM 3.10  08/21/85                                  page 39
  2836.         'C' Language characters
  2837.  
  2838.  
  2839.  
  2840.         A. 'C' Language characters        A. 'C' Language characters        A. 'C' Language characters
  2841.  
  2842.  
  2843.         Throughout TERM, when string parameters are requested, strings of 
  2844.         the  format used by the 'C' language may be specified.   In  'C', 
  2845.         strings  consist  of sequences of ASCII characters  with  special 
  2846.         control sequences mixed in.   The backslash character (\) is used 
  2847.         as an "escape" character to designate these control sequences.
  2848.  
  2849.         The control sequences consist of a backslash (\) followed by:
  2850.  
  2851.                   r    Carriage Return (CR)
  2852.                   n    Line Feed (LF)
  2853.                   f    Form Feed (FF)
  2854.                   b    Back Space (BS)
  2855.                   t    Tab (HT)
  2856.  
  2857.                   p    A  special  case  which  inserts  a  one
  2858.                        second pause. 
  2859.  
  2860.                   x    A special case which allows entering the 
  2861.                        hexadecimal   value  of  the   character       
  2862.                        directly.   The  'x'  is followed by two 
  2863.                        hex  digits.   For example,  \x0d  is  a 
  2864.                        carriage return (also \r).
  2865.                                      
  2866.         Also  any characters which may be interpreted as delimeters  such 
  2867.         as backslash, or quotation marks.  These are entered in a similar 
  2868.         fashion  as backslash (\) followed by another backslash would  be 
  2869.         translated to a single backslash).
  2870.  
  2871.         To  send your name terminated by a carriage return,  the  command 
  2872.         would be:
  2873.  
  2874.         send "greg gilley\r"
  2875.  
  2876.         To send a control-C (^C), use
  2877.  
  2878.         send "\x03"
  2879.  
  2880.         where 03 is the hexadecimal value of a control-C character.
  2881.  
  2882.  
  2883.  
  2884.  
  2885.  
  2886.  
  2887.  
  2888.  
  2889.  
  2890.  
  2891.  
  2892.  
  2893.  
  2894.  
  2895.  
  2896.  
  2897.  
  2898.         TERM 3.10  08/21/85                                  page 40
  2899.         LINE EDITING FEATURES
  2900.  
  2901.  
  2902.         B. LINE EDITING FEATURES        B. LINE EDITING FEATURES        B. LINE EDITING FEATURES
  2903.  
  2904.         When TERM prompts for information, a number of keys are available 
  2905.         for  editing  the line.   The left and right arrow keys  do  non-
  2906.         destructive cursor movement.   Backspace will delete  characters.  
  2907.         INS  will  start  insert mode -- characters are inserted  at  the 
  2908.         cursor.  The cursor changes shape to indicate the mode.   A  full 
  2909.         cursor shows overtype mode;  a half cursor shows insert mode. DEL 
  2910.         will delete a character at the cursor.   SHIFT-DEL will delete to 
  2911.         the end of the line.  SHIFT-left arrow will move to the beginning 
  2912.         of the line. SHIFT-right arrow or TAB will move to the end of the 
  2913.         line.  RETURN will end the editing.
  2914.  
  2915.         Whenever you are in a "window" answering prompts, the up and down 
  2916.         arrow  keys  can  be used to move back and forth (up  and  down?) 
  2917.         between  the items.   If the arrows will not move you,  then  the 
  2918.         value  is illegal or the value is required and you must  make  an 
  2919.         input.
  2920.  
  2921.  
  2922.  
  2923.  
  2924.  
  2925.  
  2926.  
  2927.  
  2928.  
  2929.  
  2930.  
  2931.  
  2932.  
  2933.  
  2934.  
  2935.  
  2936.  
  2937.  
  2938.  
  2939.  
  2940.  
  2941.  
  2942.  
  2943.  
  2944.  
  2945.  
  2946.  
  2947.  
  2948.  
  2949.  
  2950.  
  2951.  
  2952.  
  2953.  
  2954.  
  2955.  
  2956.  
  2957.  
  2958.  
  2959.  
  2960.  
  2961.         TERM 3.10  08/21/85                                  page 41
  2962.         MSDOS CRITICAL ERROR HANDLING
  2963.  
  2964.  
  2965.         C. MSDOS CRITICAL ERROR HANDLING        C. MSDOS CRITICAL ERROR HANDLING        C. MSDOS CRITICAL ERROR HANDLING
  2966.  
  2967.         TERM  will allow you to recover from MSDOS critical errors  in  a 
  2968.         way  that  is a little more aesthetically pleasing than  the  way 
  2969.         command.com handles them. An error screen is shown when the error 
  2970.         occurs.   This  is  a  replacement for the all too  familiar  DOS 
  2971.         prompt of Abort,  Retry, Ignore.  In most cases, you will want to 
  2972.         specify  Retry  or  Ignore.   Press the R key or  the  I  key  to 
  2973.         accomplish this.   In some instances, however, the only available 
  2974.         option is to Abort.  Press the A key to accomplish this.
  2975.  
  2976.         Under  DOS 2.0,  aborting a critical error will cause the current 
  2977.         program to be terminated and control returned to DOS.   If  abort 
  2978.         is selected,  TERM will clean up before DOS terminates it so that 
  2979.         you  will not have to reboot your system.   If the critical error 
  2980.         involved the printer,  ie.  printer not ready,  then the PRNT key 
  2981.         toggle will be turned off and control returned to TERM.   This is 
  2982.         so  that if the PRNT key is accidentally pressed and you  do  not 
  2983.         have a printer, you will not have to abort your current session.
  2984.  
  2985.  
  2986.  
  2987.  
  2988.  
  2989.  
  2990.  
  2991.  
  2992.  
  2993.  
  2994.  
  2995.  
  2996.  
  2997.  
  2998.  
  2999.  
  3000.  
  3001.  
  3002.  
  3003.  
  3004.  
  3005.  
  3006.  
  3007.  
  3008.  
  3009.  
  3010.  
  3011.  
  3012.  
  3013.  
  3014.  
  3015.  
  3016.  
  3017.  
  3018.  
  3019.  
  3020.  
  3021.  
  3022.  
  3023.  
  3024.         TERM 3.10  08/21/85                                  page 42
  3025.         EXTERNAL MODEMS
  3026.  
  3027.  
  3028.         D. EXTERNAL MODEMS        D. EXTERNAL MODEMS        D. EXTERNAL MODEMS
  3029.  
  3030.         TERM  attempts  to support most any  external  modem.   It  comes 
  3031.         configured   for   Smartmodem  compatible   modems.    Smartmodem 
  3032.         compatible means TRULY Smartmodem compatible.
  3033.  
  3034.         For a Smartmodem, the switch settings should be:
  3035.  
  3036.         Switch   Position     Meaning
  3037.         ------   --------     ------------------------------------------
  3038.            1       UP         Use DTR to hangup the modem.
  3039.            2       UP         Result codes sent as English words.
  3040.            3       DOWN       Send result codes.
  3041.            4       DOWN       Do not echo commands.
  3042.            5       DOWN       Do not answer incoming calls.
  3043.            6       UP         Issue carrier detect only on connection.
  3044.            7       UP         Single line telephone.
  3045.            8       DOWN       Enable command recognition.
  3046.  
  3047.                   Table D-1: Smartmodem switch settings                  Table D-1: Smartmodem switch settings                  Table D-1: Smartmodem switch settings
  3048.  
  3049.  
  3050.         TERM uses a set of definitions to describe how the modem responds 
  3051.         to  various commands.   The definitions are specified by  editing 
  3052.         TERM.CFG  and adding the commands to the file.   Any text  editor 
  3053.         may  be  used  as  long is it does  not  put  formatting  control 
  3054.         characters   in  the  file.    EDLIN  will  work   fine.    These 
  3055.         definitions,  except  ehs,  are limited to 10 characters and  are 
  3056.         described below.   Since these strings have default values,  they 
  3057.         must  be forced to null if no value is desired.   To set no  "OK" 
  3058.         string, use
  3059.  
  3060.         eok=
  3061.  
  3062.  
  3063.  
  3064.         ehs     -- external hangup string.   This is the command to  tell 
  3065.                    the modem to hangup.  Ususally, it is preceded by some 
  3066.                    escape  sequence  to put the modem into command  mode.  
  3067.                    On  modems  which support the  DTR  RS232  line,  this 
  3068.                    string  is  not necessary.   If ehs is not  specified, 
  3069.                    then  DTR is dropped to force the modem to hangup  and 
  3070.                    return  to command mode.   The default value is  blank 
  3071.                    (use DTR).
  3072.                    Example:
  3073.                    ehs=+++\p\pATH0\r 
  3074.  
  3075.         eok     -- external  "ok" string.   This string is returned  from 
  3076.                    the modem after a sucessful command.   TERM uses  this 
  3077.                    string  in the external modem initialization to verify 
  3078.                    modem  response.   Default value is "OK".   TERM  will 
  3079.                    wait  10  seconds after the initialization  string  is 
  3080.                    sent  for the modem to respond with this  string.   If 
  3081.                    not specified, modem response is ignored.
  3082.                    Example:
  3083.                    eok=OK
  3084.  
  3085.  
  3086.  
  3087.         TERM 3.10  08/21/85                                  page 43
  3088.         EXTERNAL MODEMS
  3089.  
  3090.  
  3091.         ebs     -- external busy string.   String returned by modem if  a 
  3092.                    busy signal detected.  Default value is "BUSY".
  3093.                    Example:
  3094.                    ebs=BUSY
  3095.  
  3096.         ecs     -- external  connect  string.   String returned by  modem 
  3097.                    after   carrier  is  detected.    Default   value   is 
  3098.                    "CONNECT".   If  ecs is not specified,  TERM will wait 
  3099.                    for the carrier detect line to go true.
  3100.                    Example:
  3101.                    ecs=CONNECT
  3102.  
  3103.         ers     -- external ring string.  String returned by modem when a 
  3104.                    ring is detected.  Default value is "RING".
  3105.                    Example:
  3106.                    ers=RING
  3107.  
  3108.         enc     -- external no carrier string.   String returned by modem 
  3109.                    if  it was unable to connect,  or if carrier  was  not 
  3110.                    detected.  Default value is "NO CARRIER".
  3111.  
  3112.         eas     -- external answer string.  Transmitted to modem to place 
  3113.                    it in answer mode.  Default value is "ATS0=1\r".
  3114.  
  3115.  
  3116.  
  3117.  
  3118.  
  3119.  
  3120.  
  3121.  
  3122.  
  3123.  
  3124.  
  3125.  
  3126.  
  3127.  
  3128.  
  3129.  
  3130.  
  3131.  
  3132.  
  3133.  
  3134.  
  3135.  
  3136.  
  3137.  
  3138.  
  3139.  
  3140.  
  3141.  
  3142.  
  3143.  
  3144.  
  3145.  
  3146.  
  3147.  
  3148.  
  3149.  
  3150.         TERM 3.10  08/21/85                                  page 44
  3151.         INDEX
  3152.  
  3153.  
  3154.          INDEX         INDEX         INDEX
  3155.  
  3156.         A        A        A
  3157.         abort, 19, 25
  3158.         accept, 25
  3159.         addition, 31
  3160.         alarm, 25
  3161.         ALT-C, 23
  3162.         ALT-D, 23
  3163.         ALT-L, 23
  3164.         ANSI graphics, 17
  3165.         ASCII
  3166.           receive, 39
  3167.           send, 38
  3168.         asend, 25
  3169.  
  3170.         B        B        B
  3171.         baud, 16, 23, 25, 32
  3172.         bell, 15, 25
  3173.         break, 23, 42
  3174.         BRK, 23, 42
  3175.         bufsize, 37
  3176.         busy handling, 17
  3177.  
  3178.         C        C        C
  3179.         carrier detect, 32, 47
  3180.         cd, 25
  3181.         change directory, 25
  3182.         checksum, 36
  3183.         close, 25
  3184.         cls, 25
  3185.         color, 13
  3186.         command line, 11
  3187.           options, 24
  3188.         COMMAND.COM, 25
  3189.         Compuserve, 17, 35
  3190.         configuration, 12, 13
  3191.           file, 11, 37
  3192.         CRC, 36
  3193.  
  3194.         D        D        D
  3195.         data bits, 17
  3196.         date, 24
  3197.         del, 25
  3198.         delay, 25
  3199.         delete
  3200.           file, 25
  3201.         dialing, 14, 21
  3202.           mode, 14
  3203.           multi, 12, 21
  3204.           redial, 14
  3205.           retry, 21
  3206.           timeout, 15, 21
  3207.         dir, 25
  3208.         direct connection, 20
  3209.         directory, 25
  3210.           change, 25
  3211.  
  3212.  
  3213.         TERM 3.10  08/21/85                                  page 45
  3214.         INDEX
  3215.  
  3216.  
  3217.         display
  3218.           intensity, 13
  3219.         division, 31
  3220.         do, 25
  3221.         dos, 25
  3222.  
  3223.         E        E        E
  3224.         echo, 25
  3225.         echos, 26
  3226.         editing, 44
  3227.         else, 26
  3228.         environment, 11
  3229.         error
  3230.           transmission, 36
  3231.         errors, 45
  3232.         escape sequences, 40, 42
  3233.         expression
  3234.           script, 26, 30, 31
  3235.           variable, 30
  3236.  
  3237.         F        F        F
  3238.         fail, 26
  3239.         file transfer, 36
  3240.           ascii, 38
  3241.         function, 33
  3242.         function keys, 12, 16, 19, 22, 23, 26, 44, 45
  3243.           global, 12
  3244.  
  3245.         G        G        G
  3246.         goto, 19, 26
  3247.  
  3248.         H        H        H
  3249.         halt, 26
  3250.         hangup, 24, 26
  3251.  
  3252.         I        I        I
  3253.         if, 26
  3254.  
  3255.         K        K        K
  3256.         keys, 19, 26
  3257.           arrow, 44
  3258.           cursor, 41
  3259.           numeric keypad, 42
  3260.  
  3261.         L        L        L
  3262.         label, 19, 26
  3263.         learn, 26, 34
  3264.         limit, 26, 27, 28, 29
  3265.         logical, 31
  3266.  
  3267.         M        M        M
  3268.         main menu, 12
  3269.         match, 26, 27, 29
  3270.           limit, 26
  3271.  
  3272.  
  3273.  
  3274.  
  3275.  
  3276.         TERM 3.10  08/21/85                                  page 46
  3277.         INDEX
  3278.  
  3279.  
  3280.         modem
  3281.           autodial, 14, 17, 20
  3282.           external, 14, 17, 20, 46
  3283.           internal, 13, 14, 16, 17, 20
  3284.         modem7, 36
  3285.         modulus, 31
  3286.         monochrome, 13
  3287.         multidialing, 12, 21
  3288.         multiplication, 31
  3289.  
  3290.         O        O        O
  3291.         obey, 27
  3292.         operator
  3293.           arithmetic, 31
  3294.           bitwise, 31
  3295.           conditional, 31
  3296.           logical, 31
  3297.           precedence, 31
  3298.           relational, 31
  3299.         options, 11
  3300.         output, 27
  3301.         override, 20
  3302.  
  3303.         P        P        P
  3304.         parameter
  3305.           modify, 23, 27
  3306.           setup, 12, 16, 23
  3307.         parameter file, 11, 12, 14, 16, 19, 20, 21
  3308.           xmodem, 36
  3309.         parity, 17, 23
  3310.           strip, 17, 23
  3311.         parms, 27
  3312.         pat, 27, 33
  3313.         pattern, 27, 28, 29
  3314.           variable, 33
  3315.         pause, 28
  3316.         phone number, 17
  3317.         port
  3318.           override, 20
  3319.           specification, 13
  3320.         printer, 23, 45
  3321.         PRNT, 23
  3322.         prompt, 25, 28, 29
  3323.         purgek, 28
  3324.  
  3325.         Q        Q        Q
  3326.         q, 33
  3327.         quitcmd, 24
  3328.  
  3329.         R        R        R
  3330.         r, 28
  3331.         relational, 31
  3332.         rem, 28
  3333.  
  3334.  
  3335.  
  3336.  
  3337.  
  3338.  
  3339.         TERM 3.10  08/21/85                                  page 47
  3340.         INDEX
  3341.  
  3342.  
  3343.         S        S        S
  3344.         s, 28
  3345.         save file, 14, 22, 24, 25, 26, 28, 29
  3346.         script, 19, 24
  3347.           abort, 25, 26
  3348.           automatic, 23, 26, 34
  3349.           command, 23
  3350.           example, 35
  3351.           expression, 26, 30, 31
  3352.           file, 11
  3353.           nest, 25
  3354.           output, 27, 28
  3355.           variable, 30
  3356.         send, 28
  3357.           ascii, 25
  3358.           delay, 25
  3359.           string, 28, 29
  3360.         sende, 29
  3361.         set, 29
  3362.         sleep, 29
  3363.         snap, 23, 29
  3364.         snapshot, 23, 29
  3365.         status
  3366.           intensity, 13
  3367.         status line, 22, 24
  3368.         stopbits, 17, 23
  3369.         string
  3370.           variable, 24, 25
  3371.         subtraction, 31
  3372.  
  3373.         T        T        T
  3374.         telink, 36
  3375.         terminal
  3376.           emulation, 17, 40
  3377.           type, 17
  3378.         threshold, 28, 29
  3379.         time, 24, 29
  3380.  
  3381.         V        V        V
  3382.         variable
  3383.           expression, 32
  3384.           string, 22, 24, 29
  3385.         VT100, 17, 40, 42
  3386.         VT52, 17, 41, 42
  3387.  
  3388.         W        W        W
  3389.         wait, 27, 29, 33
  3390.         while, 30, 33
  3391.  
  3392.  
  3393.  
  3394.  
  3395.  
  3396.  
  3397.  
  3398.  
  3399.  
  3400.  
  3401.  
  3402.         TERM 3.10  08/21/85                                  page 48
  3403.         INDEX
  3404.  
  3405.  
  3406.         X        X        X
  3407.         xmodem
  3408.           buffer, 37
  3409.           receive, 28, 36, 37
  3410.           send, 28, 36
  3411.           timing, 36
  3412.         xm_block, 36
  3413.         xm_char, 36
  3414.         Xon/Xoff, 17
  3415.  
  3416.  
  3417.  
  3418.  
  3419.  
  3420.  
  3421.  
  3422.  
  3423.  
  3424.  
  3425.  
  3426.  
  3427.  
  3428.  
  3429.  
  3430.  
  3431.  
  3432.  
  3433.  
  3434.  
  3435.  
  3436.  
  3437.  
  3438.  
  3439.  
  3440.  
  3441.  
  3442.  
  3443.  
  3444.  
  3445.  
  3446.  
  3447.  
  3448.  
  3449.  
  3450.  
  3451.  
  3452.  
  3453.  
  3454.  
  3455.  
  3456.  
  3457.  
  3458.  
  3459.  
  3460.  
  3461.  
  3462.  
  3463.  
  3464.  
  3465.         TERM 3.10  08/21/85                                  page 49
  3466.